aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mi/mi-cmd-var.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 51d4db5..3f50bca 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-cmd-var.c (mi_cmd_var_create): Fix cleanup
+ handlers. Free expression.
+
2006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
* config/tm-linux.h (REALTIME_LO, REALTIME_HI): Do not define.
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)
{