From: Alexandre Oliva Date: Sat, 15 Dec 2012 10:24:50 +0000 (+0000) Subject: * mf-hooks1.c (free): Return on NULL before any logging. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a6fe81088b9a7e5242897892239b745d9273cf9;p=gcc.git * mf-hooks1.c (free): Return on NULL before any logging. From-SVN: r194518 --- diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog index 8956c3c981a..a5f05f63da6 100644 --- a/libmudflap/ChangeLog +++ b/libmudflap/ChangeLog @@ -1,3 +1,7 @@ +2012-12-15 Alexandre Oliva + + * mf-hooks1.c (free): Return on NULL before any logging. + 2012-09-14 David Edelsohn * configure: Regenerated. diff --git a/libmudflap/mf-hooks1.c b/libmudflap/mf-hooks1.c index 3dd332e12c6..7a273218d0f 100644 --- a/libmudflap/mf-hooks1.c +++ b/libmudflap/mf-hooks1.c @@ -238,11 +238,11 @@ WRAPPER(void, free, void *buf) static int freeq_initialized = 0; DECLARE(void, free, void *); - BEGIN_PROTECT (free, buf); - if (UNLIKELY(buf == NULL)) return; + BEGIN_PROTECT (free, buf); + #if PIC /* Check whether the given buffer might have come from a __mf_0fn_malloc/calloc call that for whatever reason was not