aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-07-31 21:42:19 +0000
committerMichael Snyder <msnyder@vmware.com>2007-07-31 21:42:19 +0000
commit73780b3c0adc18e51583865bd831586056162fbc (patch)
treed8f86a0c2ca1aa4da6d8a8bd914c8b0aa424bf2a /gdb/symfile.c
parentabe34c358d7703ea0688ce39e7c7cbe4293fa5c8 (diff)
downloadgdb-73780b3c0adc18e51583865bd831586056162fbc.zip
gdb-73780b3c0adc18e51583865bd831586056162fbc.tar.gz
gdb-73780b3c0adc18e51583865bd831586056162fbc.tar.bz2
2007-07-31 Michael Snyder <msnyder@access-company.com>
* symfile.c (reread_separate_symbols): Free xmalloced memory.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 8e4e03d..bd02bca 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);
}