aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2006-11-28 19:40:27 +0000
committerVladimir Prus <vladimir@codesourcery.com>2006-11-28 19:40:27 +0000
commit51b57b6b26e4c4780d5f6f7ffacca721e75ff039 (patch)
tree9e327f39ea272113da373fea2d03562b3fb9922a /gdb/mi
parent238ae9afbe3cc9327ea31dff4f4facc6b79cfa24 (diff)
downloadgdb-51b57b6b26e4c4780d5f6f7ffacca721e75ff039.zip
gdb-51b57b6b26e4c4780d5f6f7ffacca721e75ff039.tar.gz
gdb-51b57b6b26e4c4780d5f6f7ffacca721e75ff039.tar.bz2
2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
* mi/mi-cmd-var.c (mi_cmd_var_create): Fix cleanup handlers. Free expression.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-cmd-var.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c
index ab83525..92351c4 100644
--- a/gdb/mi/mi-cmd-var.c
+++ b/gdb/mi/mi-cmd-var.c
@@ -66,9 +66,10 @@ mi_cmd_var_create (char *command, char **argv, int argc)
old_cleanups = make_cleanup (free_current_contents, &name);
frame = xstrdup (argv[1]);
- old_cleanups = make_cleanup (xfree, frame);
+ make_cleanup (xfree, frame);
expr = xstrdup (argv[2]);
+ make_cleanup (xfree, expr);
if (strcmp (name, "-") == 0)
{