diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-30 17:44:54 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-30 17:44:54 +0000 |
commit | 6868414a37859e8f455d7180bb243d89d8889120 (patch) | |
tree | 4623afcbe5c7fb630955a8e6d197ed69c1012ea6 | |
parent | 772ba0012061d30809885e891dd022bb999115de (diff) | |
download | gdb-6868414a37859e8f455d7180bb243d89d8889120.tar.gz |
maintenance_expand_symtabs leaks a cleanup
It turns out that maintenance_expand_symtabs was missing a call to
do_cleanups. I found this using the cleanup checker.
* symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/symmisc.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fe96062b1b8..7c134f67ac2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2013-05-30 Tom Tromey <tromey@redhat.com> + * symmisc.c (maintenance_expand_symtabs): Call do_cleanups. + +2013-05-30 Tom Tromey <tromey@redhat.com> + * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove 'old_chain' argument. Add 'parser_result' argument. diff --git a/gdb/symmisc.c b/gdb/symmisc.c index eb8bbbfb2a0..a1ae7bdffd7 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -898,6 +898,8 @@ maintenance_expand_symtabs (char *args, int from_tty) maintenance_expand_name_matcher, ALL_DOMAIN, regexp); } } + + do_cleanups (cleanups); } |