From: Tom Tromey Date: Thu, 30 May 2013 17:44:54 +0000 (+0000) Subject: maintenance_expand_symtabs leaks a cleanup X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e993a190a2602ee03f2dbad245d0c074e9b2362;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fe96062b1b8..7c134f67ac2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-05-30 Tom Tromey + + * symmisc.c (maintenance_expand_symtabs): Call do_cleanups. + 2013-05-30 Tom Tromey * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from 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); }