diff options
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmd-var.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c index a401846..aee6224 100644 --- a/gdb/mi/mi-cmd-var.c +++ b/gdb/mi/mi-cmd-var.c @@ -196,7 +196,7 @@ mi_cmd_var_delete (char *command, char **argv, int argc) children_only_p = 1; do_cleanups (old_cleanups); name = xstrdup (argv[1]); - make_cleanup (free_current_contents, &name); + old_cleanups = make_cleanup (free_current_contents, &name); } /* If we didn't error out, now NAME contains the name of the |