diff options
author | DJ Delorie <dj@redhat.com> | 2009-09-23 17:59:27 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2009-09-23 17:59:27 +0000 |
commit | 572771db36119a9aea94d265cfe9607b6c1721b9 (patch) | |
tree | 8e9a091aea50d56add86fae33f539dada0a52d60 /libiberty | |
parent | 20bb6bc822fb4105261dc8de1cb878fe8d45080d (diff) | |
download | gdb-572771db36119a9aea94d265cfe9607b6c1721b9.zip gdb-572771db36119a9aea94d265cfe9607b6c1721b9.tar.gz gdb-572771db36119a9aea94d265cfe9607b6c1721b9.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 4 | ||||
-rw-r--r-- | libiberty/cplus-dem.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index afa8c6b..dd1c1a3 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2009-09-23 Matthew Gingell <gingell@adacore.com> + + * cplus-dem.c (ada_demangle): Ensure demangled is freed. + 2009-09-22 Ozkan Sezer <sezeroz@gmail.com> * choose-temp.c: Include unistd.h for mingw targets. diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index 4167467..6628514 100644 --- a/libiberty/cplus-dem.c +++ b/libiberty/cplus-dem.c @@ -984,7 +984,10 @@ ada_demangle (const char *mangled, int option ATTRIBUTE_UNUSED) goto Suppress; if (! changed) - return NULL; + { + free (demangled); + return NULL; + } else return demangled; |