diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-01 22:13:48 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-01 22:13:48 +0000 |
commit | 21cbba772bc49b385076834496fd8475a85064cd (patch) | |
tree | faf4b47ceee7ff7e75dfe6dff0da332fba50dca7 /gdb/tracepoint.c | |
parent | 63360adcb44f148218295b192171b1e5e4ff4ca7 (diff) | |
download | gdb-21cbba772bc49b385076834496fd8475a85064cd.zip gdb-21cbba772bc49b385076834496fd8475a85064cd.tar.gz gdb-21cbba772bc49b385076834496fd8475a85064cd.tar.bz2 |
2011-03-01 Michael Snyder <msnyder@vmware.com>
* tracepoint.c (scope_info): Fix mem leak, remove underused
variable.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 2d675ce..b5a2e0a 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -2327,7 +2327,7 @@ scope_info (char *args, int from_tty) struct symbol *sym; struct minimal_symbol *msym; struct block *block; - char **canonical, *symname, *save_args = args; + char *symname, *save_args = args; struct dict_iterator iter; int j, count = 0; struct gdbarch *gdbarch; @@ -2337,7 +2337,7 @@ scope_info (char *args, int from_tty) error (_("requires an argument (function, " "line or *addr) to define a scope")); - sals = decode_line_1 (&args, 1, NULL, 0, &canonical, NULL); + sals = decode_line_1 (&args, 1, NULL, 0, NULL, NULL); if (sals.nelts == 0) return; /* Presumably decode_line_1 has already warned. */ |