From: Michael Snyder Date: Tue, 31 Jul 2007 21:42:19 +0000 (+0000) Subject: 2007-07-31 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73780b3c0adc18e51583865bd831586056162fbc;p=binutils-gdb.git 2007-07-31 Michael Snyder * symfile.c (reread_separate_symbols): Free xmalloced memory. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 52e10de19bf..54d610ef27f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2007-07-31 Michael Snyder + * symfile.c (reread_separate_symbols): Free xmalloced memory. + * printcmd.c (build_address_symbolic): Remove dead code and dead variable. diff --git a/gdb/symfile.c b/gdb/symfile.c index 8e4e03d8aa4..bd02bcad096 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -2439,6 +2439,8 @@ reread_separate_symbols (struct objfile *objfile) objfile->separate_debug_objfile->separate_debug_objfile_backlink = objfile; } + if (debug_file) + xfree (debug_file); }