mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-29 04:53:56 +08:00
2007-08-17 Michael Snyder <msnyder@access-company.com>
* stack.c (print_frame): Memory leak.
This commit is contained in:
parent
1e8189fbb5
commit
f91162e199
@ -1,5 +1,7 @@
|
||||
2007-08-17 Michael Snyder <msnyder@access-company.com>
|
||||
|
||||
* stack.c (print_frame): Memory leak.
|
||||
|
||||
* completer.c (filename_completer): Avoid memory leak.
|
||||
Remove unnecessary nested block.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user