2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
* mi/mi-cmd-var.c (mi_cmd_var_create): Fix cleanup handlers. Free expression.
This commit is contained in:
parent
238ae9afbe
commit
51b57b6b26
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
* config/tm-linux.h (REALTIME_LO, REALTIME_HI): Do not define.
|
* config/tm-linux.h (REALTIME_LO, REALTIME_HI): Do not define.
|
||||||
|
|
|
@ -66,9 +66,10 @@ mi_cmd_var_create (char *command, char **argv, int argc)
|
||||||
old_cleanups = make_cleanup (free_current_contents, &name);
|
old_cleanups = make_cleanup (free_current_contents, &name);
|
||||||
|
|
||||||
frame = xstrdup (argv[1]);
|
frame = xstrdup (argv[1]);
|
||||||
old_cleanups = make_cleanup (xfree, frame);
|
make_cleanup (xfree, frame);
|
||||||
|
|
||||||
expr = xstrdup (argv[2]);
|
expr = xstrdup (argv[2]);
|
||||||
|
make_cleanup (xfree, expr);
|
||||||
|
|
||||||
if (strcmp (name, "-") == 0)
|
if (strcmp (name, "-") == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue