maintenance_expand_symtabs leaks a cleanup
authorTom Tromey <tromey@redhat.com>
Thu, 30 May 2013 17:44:54 +0000 (17:44 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 30 May 2013 17:44:54 +0000 (17:44 +0000)
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.

gdb/ChangeLog
gdb/symmisc.c

index fe96062..7c134f6 100644 (file)
@@ -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.
index eb8bbbf..a1ae7bd 100644 (file)
@@ -898,6 +898,8 @@ maintenance_expand_symtabs (char *args, int from_tty)
             maintenance_expand_name_matcher, ALL_DOMAIN, regexp);
        }
     }
+
+  do_cleanups (cleanups);
 }
 \f