diff options
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/solib.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1719c18..4b14824 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-03-04 Michael Snyder <msnyder@vmware.com> + + * solib.c (reload_shared_libraries_1): Close memory leak. + 2011-03-03 Tom Tromey <tromey@redhat.com> PR gdb/12538: diff --git a/gdb/solib.c b/gdb/solib.c index 6748d87..2bf0751 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -1326,6 +1326,7 @@ reload_shared_libraries_1 (int from_tty) SYMFILE_DEFER_BP_RESET | (from_tty ? SYMFILE_VERBOSE : 0); filename = tilde_expand (so->so_original_name); + make_cleanup (xfree, filename); abfd = solib_bfd_open (filename); if (abfd != NULL) { |