From 2a7d6a257ff5db0136fef833d498644ea57bf285 Mon Sep 17 00:00:00 2001 From: Sami Wagiaalla Date: Fri, 24 Sep 2010 14:47:53 +0000 Subject: [PATCH] Fix find_oload_champ_namespace_loop memory leak. 2010-09-24 Sami Wagiaalla * valops.c (find_oload_champ_namespace_loop): replace incorrect discard_cleanups do_cleanups. --- gdb/ChangeLog | 5 +++++ gdb/valops.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dc0b5a20f02..38117e1bad5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-09-24 Sami Wagiaalla + + * valops.c (find_oload_champ_namespace_loop): replace incorrect + discard_cleanups do_cleanups. + 2010-09-24 Pedro Alves PR gdb/11842 diff --git a/gdb/valops.c b/gdb/valops.c index bbbf66e7979..13c83ffc474 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -2760,7 +2760,7 @@ find_oload_champ_namespace_loop (struct type **arg_types, int nargs, *oload_syms = new_oload_syms; *oload_champ = new_oload_champ; *oload_champ_bv = new_oload_champ_bv; - discard_cleanups (old_cleanups); + do_cleanups (old_cleanups); return 0; } } -- 2.30.2