diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-08-13 22:57:39 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-08-13 22:57:39 +0000 |
commit | b538c2345375bc023ee1da41213db86e267ddd1a (patch) | |
tree | c4f2bfe641e0a26d0916abf4c0510ea4218ecb09 | |
parent | be8ca11b9e5779d8fb1aeb847da106f36febc851 (diff) | |
download | fsf-binutils-gdb-b538c2345375bc023ee1da41213db86e267ddd1a.zip fsf-binutils-gdb-b538c2345375bc023ee1da41213db86e267ddd1a.tar.gz fsf-binutils-gdb-b538c2345375bc023ee1da41213db86e267ddd1a.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/mi/mi-cmd-var.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0a19b2f..e9844f2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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> diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c index 37c87ff..fc52de1 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\"")); |