aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-04 18:02:54 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-04 18:02:54 +0000
commit42b1321cc8ad89292c2420e73d3f44aebb77b571 (patch)
tree5510ca63a8f2f2580e601822adb5799e3376ab28 /gdb/solib.c
parent7a762829137870eaf69ee533a1e0e21bb4052cd3 (diff)
downloadgdb-42b1321cc8ad89292c2420e73d3f44aebb77b571.zip
gdb-42b1321cc8ad89292c2420e73d3f44aebb77b571.tar.gz
gdb-42b1321cc8ad89292c2420e73d3f44aebb77b571.tar.bz2
2011-03-04 Michael Snyder <msnyder@vmware.com>
* solib.c (reload_shared_libraries_1): Close memory leak.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c1
1 files changed, 1 insertions, 0 deletions
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)
{