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 dc0b5a20f02ab2d514f86fb3670ddf64c84710f9..38117e1bad58c02b1794ee26215dcc214421f1bc 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 bbbf66e797916315872c0d62deebf4267ac7262b..13c83ffc474738dff5367879a43f513021241856 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;
     }
 }