summaryrefslogtreecommitdiff
path: root/gdb/ui-out.c
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2012-05-31 18:44:47 +0000
committerKeith Seitz <keiths@redhat.com>2012-05-31 18:44:47 +0000
commit9c97af57fe0799b06cbb708b89cc04210949b787 (patch)
tree853080db61aff8fec3ecc0911cb8a3b7564d8604 /gdb/ui-out.c
parent8c34d256e9201b6742db6739457d710c69ad9383 (diff)
downloadgdb-9c97af57fe0799b06cbb708b89cc04210949b787.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/ui-out.c')
-rw-r--r--gdb/ui-out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index aa53f3ffea5..ec68cdd2153 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -968,8 +968,8 @@ clear_header_list (struct ui_out *uiout)
{
uiout->table.header_next = uiout->table.header_first;
uiout->table.header_first = uiout->table.header_first->next;
- if (uiout->table.header_next->colhdr != NULL)
- xfree (uiout->table.header_next->colhdr);
+ xfree (uiout->table.header_next->colhdr);
+ xfree (uiout->table.header_next->col_name);
xfree (uiout->table.header_next);
}
gdb_assert (uiout->table.header_first == NULL);