2007-07-31 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 31 Jul 2007 21:42:19 +0000 (21:42 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 31 Jul 2007 21:42:19 +0000 (21:42 +0000)
* symfile.c (reread_separate_symbols): Free xmalloced memory.

gdb/ChangeLog
gdb/symfile.c

index 52e10de19bfb1cfb0b24a0b61d52b41ce7e6d447..54d610ef27f4ebdf7206eb41a29b8b77931a4e1a 100644 (file)
@@ -1,5 +1,7 @@
 2007-07-31  Michael Snyder  <msnyder@access-company.com>
 
+       * symfile.c (reread_separate_symbols): Free xmalloced memory.
+
        * printcmd.c (build_address_symbolic): Remove dead code and dead 
        variable.
 
index 8e4e03d8aa454dc5ee2ebf50f21410aea1f6282c..bd02bcad0962ab37955be86ffef431ca179cf0fc 100644 (file)
@@ -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);
 }