diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-15 10:24:50 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-15 10:24:50 +0000 |
commit | 4bb918e02ce0785b3fbdca6277d732bc5e072470 (patch) | |
tree | b7f3913d1436aa01e9834b9804456cf9a514703e /libmudflap | |
parent | 458dcbc2981519567e3381fe450fd7721837e8e1 (diff) | |
download | gcc-4bb918e02ce0785b3fbdca6277d732bc5e072470.tar.gz |
* mf-hooks1.c (free): Return on NULL before any logging.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194518 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap')
-rw-r--r-- | libmudflap/ChangeLog | 4 | ||||
-rw-r--r-- | libmudflap/mf-hooks1.c | 4 |
2 files changed, 6 insertions, 2 deletions
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 <aoliva@redhat.com> + + * mf-hooks1.c (free): Return on NULL before any logging. + 2012-09-14 David Edelsohn <dje.gcc@gmail.com> * 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 |