aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/valops.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index dc0b5a2..38117e1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * valops.c (find_oload_champ_namespace_loop): replace incorrect
+ discard_cleanups do_cleanups.
+
2010-09-24 Pedro Alves <pedro@codesourcery.com>
PR gdb/11842
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;
}
}