diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-08-18 00:21:03 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-08-18 00:21:03 +0000 |
commit | f91162e1998a368455be2b8fb573ffc0e1322e7f (patch) | |
tree | cfecd4f44fbbf2958ab899397814da35cb4a7c69 /gdb/stack.c | |
parent | 1e8189fbb5629e0f78298e420b78b9fd381d6ff4 (diff) | |
download | gdb-f91162e1998a368455be2b8fb573ffc0e1322e7f.zip gdb-f91162e1998a368455be2b8fb573ffc0e1322e7f.tar.gz gdb-f91162e1998a368455be2b8fb573ffc0e1322e7f.tar.bz2 |
2007-08-17 Michael Snyder <msnyder@access-company.com>
* stack.c (print_frame): Memory leak.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index c022a31..544d693 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -582,6 +582,8 @@ print_frame (struct frame_info *frame, int print_level, the symbol table. That'll have parameters, but that's preferable to displaying a mangled name. */ funname = SYMBOL_PRINT_NAME (func); + else + xfree (demangled); } } } @@ -882,6 +884,8 @@ frame_info (char *addr_exp, int from_tty) preferable to displaying a mangled name. */ if (demangled == NULL) funname = SYMBOL_PRINT_NAME (func); + else + xfree (demangled); } } else |