mirror of git://gcc.gnu.org/git/gcc.git
* mf-hooks1.c (free): Return on NULL before any logging.
From-SVN: r194518
This commit is contained in:
parent
1c95972133
commit
5a6fe81088
|
|
@ -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>
|
2012-09-14 David Edelsohn <dje.gcc@gmail.com>
|
||||||
|
|
||||||
* configure: Regenerated.
|
* configure: Regenerated.
|
||||||
|
|
|
||||||
|
|
@ -238,11 +238,11 @@ WRAPPER(void, free, void *buf)
|
||||||
static int freeq_initialized = 0;
|
static int freeq_initialized = 0;
|
||||||
DECLARE(void, free, void *);
|
DECLARE(void, free, void *);
|
||||||
|
|
||||||
BEGIN_PROTECT (free, buf);
|
|
||||||
|
|
||||||
if (UNLIKELY(buf == NULL))
|
if (UNLIKELY(buf == NULL))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
BEGIN_PROTECT (free, buf);
|
||||||
|
|
||||||
#if PIC
|
#if PIC
|
||||||
/* Check whether the given buffer might have come from a
|
/* Check whether the given buffer might have come from a
|
||||||
__mf_0fn_malloc/calloc call that for whatever reason was not
|
__mf_0fn_malloc/calloc call that for whatever reason was not
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue