aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorSami Wagiaalla <swagiaal@redhat.com>2010-09-22 15:48:59 +0000
committerSami Wagiaalla <swagiaal@redhat.com>2010-09-22 15:48:59 +0000
commitec32282347dc5dbd1d58cbc16427e2e24ca6b14c (patch)
tree98a4e7cca3009adfc62504214578e5c1951dca26 /gdb/valops.c
parente4b0fe2fa7c4fae156f5d0bc3e14fcc9c397614f (diff)
downloadgdb-ec32282347dc5dbd1d58cbc16427e2e24ca6b14c.zip
gdb-ec32282347dc5dbd1d58cbc16427e2e24ca6b14c.tar.gz
gdb-ec32282347dc5dbd1d58cbc16427e2e24ca6b14c.tar.bz2
Fix PR 12028: "GDB crashes on a double free during overload resolution "
2010-09-22 Sami Wagiaalla <swagiaal@redhat.com> PR C++/12028 * valops.c (find_oload_champ_namespace_loop): removed incorrect 'old_cleanups' reassignment. 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/pr12028.cc: New. * gdb.cp/pr12028.exp: New.
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 8150d7e..bbbf66e 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -2713,7 +2713,7 @@ find_oload_champ_namespace_loop (struct type **arg_types, int nargs,
function symbol to start off with.) */
old_cleanups = make_cleanup (xfree, *oload_syms);
- old_cleanups = make_cleanup (xfree, *oload_champ_bv);
+ make_cleanup (xfree, *oload_champ_bv);
new_namespace = alloca (namespace_len + 1);
strncpy (new_namespace, qualified_name, namespace_len);
new_namespace[namespace_len] = '\0';