aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.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/ui-out.c
parent2d376810dc04fbbcfcd9af8f3a2692f47746f980 (diff)
downloadgdb-71bdabee218e22fa592ab679a2d1ee044e0f6e2c.zip
gdb-71bdabee218e22fa592ab679a2d1ee044e0f6e2c.tar.gz
gdb-71bdabee218e22fa592ab679a2d1ee044e0f6e2c.tar.bz2
* 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 aa53f3f..ec68cdd 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);