merge from gcc

This commit is contained in:
DJ Delorie 2009-09-23 17:59:27 +00:00
parent 20bb6bc822
commit 572771db36
2 changed files with 8 additions and 1 deletions

View File

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

View File

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