Fix find_oload_champ_namespace_loop memory leak.
authorSami Wagiaalla <swagiaal@redhat.com>
Fri, 24 Sep 2010 14:47:53 +0000 (14:47 +0000)
committerSami Wagiaalla <swagiaal@redhat.com>
Fri, 24 Sep 2010 14:47:53 +0000 (14:47 +0000)
2010-09-24  Sami Wagiaalla  <swagiaal@redhat.com>

* valops.c (find_oload_champ_namespace_loop): replace incorrect
discard_cleanups do_cleanups.

gdb/ChangeLog
gdb/valops.c

index dc0b5a2..38117e1 100644 (file)
@@ -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
index bbbf66e..13c83ff 100644 (file)
@@ -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;
     }
 }