2007-08-13 Michael Snyder <msnyder@access-company.com>
* mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak. No need to make copy.
This commit is contained in:
parent
be8ca11b9e
commit
b538c23453
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
2007-08-13 Michael Snyder <msnyder@access-company.com>
|
||||
|
||||
* mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
|
||||
No need to make copy.
|
||||
|
||||
* source.c (find_source_lines): Require symtab 's'.
|
||||
|
||||
2007-08-11 Michael Snyder <msnyder@access-company.com>
|
||||
|
|
|
@ -207,7 +207,7 @@ mi_cmd_var_set_format (char *command, char **argv, int argc)
|
|||
if (var == NULL)
|
||||
error (_("mi_cmd_var_set_format: Variable object not found"));
|
||||
|
||||
formspec = xstrdup (argv[1]);
|
||||
formspec = argv[1];
|
||||
if (formspec == NULL)
|
||||
error (_("mi_cmd_var_set_format: Must specify the format as: \"natural\", \"binary\", \"decimal\", \"hexadecimal\", or \"octal\""));
|
||||
|
||||
|
|
Loading…
Reference in a new issue