From: Michael Snyder Date: Mon, 13 Aug 2007 22:57:39 +0000 (+0000) Subject: 2007-08-13 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b538c2345375bc023ee1da41213db86e267ddd1a;p=binutils-gdb.git 2007-08-13 Michael Snyder * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak. No need to make copy. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0a19b2fc085..e9844f28ea8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2007-08-13 Michael Snyder + * 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 diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c index 37c87ff1da3..fc52de10ac0 100644 --- a/gdb/mi/mi-cmd-var.c +++ b/gdb/mi/mi-cmd-var.c @@ -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\""));