* mf-hooks1.c (free): Return on NULL before any logging.

From-SVN: r194518
This commit is contained in:
Alexandre Oliva 2012-12-15 10:24:50 +00:00 committed by Alexandre Oliva
parent 1c95972133
commit 5a6fe81088
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2012-12-15 Alexandre Oliva <aoliva@redhat.com>
* mf-hooks1.c (free): Return on NULL before any logging.
2012-09-14 David Edelsohn <dje.gcc@gmail.com>
* configure: Regenerated.

View File

@ -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