aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-01-08 16:32:30 +0000
committerTom Tromey <tromey@redhat.com>2009-01-08 16:32:30 +0000
commitf75455520e7d4fa0f867d2f4a8f3dffd1a0595fc (patch)
tree67b7301ed29325c649f0f2da4745a855bf3ccb28 /gdb/symfile.c
parente77b97d43359df06713529ec054ed1ed8afb3e37 (diff)
downloadgdb-f75455520e7d4fa0f867d2f4a8f3dffd1a0595fc.zip
gdb-f75455520e7d4fa0f867d2f4a8f3dffd1a0595fc.tar.gz
gdb-f75455520e7d4fa0f867d2f4a8f3dffd1a0595fc.tar.bz2
PR breakpoints/9350:
* varobj.c (varobj_invalidate): Unconditionally free all_rootvarobj. * symfile.c (syms_from_objfile): Free local_addr when returning normally. * exec.c (exec_file_attach): Do cleanups before returning. (exec_file_command): Likewise. * corefile.c (reopen_exec_file): Do cleanups before returning. * breakpoint.c (insert_breakpoint_locations): Do cleanups before returning. (do_vec_free): New function. (update_global_location_list): Make a cleanup for old_locations. Do cleanups before returning. Remove unused variable 'e'. (find_condition_and_thread): Free result of parsing the expression. (print_it_typical): Do cleanups before returning. (breakpoint_re_set_one): Always free sals.sals.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 14cb7b8..21328b8 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -899,6 +899,7 @@ syms_from_objfile (struct objfile *objfile,
/* Discard cleanups as symbol reading was successful. */
discard_cleanups (old_chain);
+ xfree (local_addr);
}
/* Perform required actions after either reading in the initial