diff options
author | Keith Seitz <keiths@redhat.com> | 2012-05-31 18:44:47 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2012-05-31 18:44:47 +0000 |
commit | 9c97af57fe0799b06cbb708b89cc04210949b787 (patch) | |
tree | 853080db61aff8fec3ecc0911cb8a3b7564d8604 /gdb/ui-out.c | |
parent | 8c34d256e9201b6742db6739457d710c69ad9383 (diff) | |
download | gdb-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.c | 4 |
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); |