OSDN Git Service
(root)
/
pf3gnuchains
/
sourceware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20290a2
)
merge from gcc
author
dj
<dj>
Wed, 23 Sep 2009 17:59:27 +0000
(17:59 +0000)
committer
dj
<dj>
Wed, 23 Sep 2009 17:59:27 +0000
(17:59 +0000)
libiberty/ChangeLog
patch
|
blob
|
history
libiberty/cplus-dem.c
patch
|
blob
|
history
diff --git
a/libiberty/ChangeLog
b/libiberty/ChangeLog
index
afa8c6b
..
dd1c1a3
100644
(file)
--- 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
(file)
--- 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;