diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-30 16:57:38 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-30 16:57:38 +0000 |
commit | e61727abf0dca6c26548e1df9d51a370faf28542 (patch) | |
tree | 42c3da034fe85731e9eb27674de591e760ad272a /readline/keymaps.c | |
parent | b81b921f794dc3ce6112e784f39511004c7cb542 (diff) | |
download | gdb-e61727abf0dca6c26548e1df9d51a370faf28542.zip gdb-e61727abf0dca6c26548e1df9d51a370faf28542.tar.gz gdb-e61727abf0dca6c26548e1df9d51a370faf28542.tar.bz2 |
fix linespec bug noticed by the checker
This fixes a linespec bug noticed by the cleanup checker.
find_linespec_symbols did this:
cleanup = demangle_for_lookup (name, state->language->la_language,
&lookup_name);
[...]
cleanup = make_cleanup (xfree, canon);
But this is wrong, as it makes a subsequent call to do_cleanups not
clean up all the local state.
* linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
Diffstat (limited to 'readline/keymaps.c')
0 files changed, 0 insertions, 0 deletions