From 4e993a190a2602ee03f2dbad245d0c074e9b2362 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 30 May 2013 17:44:54 +0000 Subject: [PATCH] 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. --- gdb/ChangeLog | 4 ++++ gdb/symmisc.c | 2 ++ 2 files changed, 6 insertions(+) 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); } -- 2.30.2