aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorSami Wagiaalla <swagiaal@redhat.com>2010-09-24 14:47:53 +0000
committerSami Wagiaalla <swagiaal@redhat.com>2010-09-24 14:47:53 +0000
commit2a7d6a257ff5db0136fef833d498644ea57bf285 (patch)
tree2ffe9df46aea3861bda7c0371a84e51c852b46b9 /gdb/valops.c
parente6ee044df39c93f2a1749061d45a11854dcee9f8 (diff)
downloadgdb-2a7d6a257ff5db0136fef833d498644ea57bf285.zip
gdb-2a7d6a257ff5db0136fef833d498644ea57bf285.tar.gz
gdb-2a7d6a257ff5db0136fef833d498644ea57bf285.tar.bz2
Fix find_oload_champ_namespace_loop memory leak.
2010-09-24 Sami Wagiaalla <swagiaal@redhat.com> * valops.c (find_oload_champ_namespace_loop): replace incorrect discard_cleanups do_cleanups.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index bbbf66e..13c83ff 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;
}
}