summaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2012-05-31 18:44:50 +0000
committerKeith Seitz <keiths@redhat.com>2012-05-31 18:44:50 +0000
commit71bdabee218e22fa592ab679a2d1ee044e0f6e2c (patch)
tree0026ab4808725db7b4858275ac13e940c7a5ad65 /gdb/symfile.c
parent2d376810dc04fbbcfcd9af8f3a2692f47746f980 (diff)
downloadbinutils-gdb-71bdabee218e22fa592ab679a2d1ee044e0f6e2c.tar.gz
* linespec.c (decode_objc): Add cleanup to free
INFO.FILE_SYMTABS. (find_linespec_symbols): Add cleanup to free CLASSES. * symfile.c (find_separate_debug_file_by_debuglink): Add cleanup to free DEBUGLINK. * ui-out.c (clear_header_list): No need to check if HEADER_NEXT.COLHDR is NULL. Free HEADER_NEXT.COL_NAME.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 31da4e4842d..37d98d984ea 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1553,8 +1553,9 @@ find_separate_debug_file_by_debuglink (struct objfile *objfile)
return NULL;
}
+ cleanups = make_cleanup (xfree, debuglink);
dir = xstrdup (objfile->name);
- cleanups = make_cleanup (xfree, dir);
+ make_cleanup (xfree, dir);
terminate_after_last_dir_separator (dir);
canon_dir = lrealpath (dir);