* breakpoint.c (clear_command): Add cleanup for
sals.sals if an argument is given. * linespec.c (parse_linespec): Do cleanups after parsing a convenience variable.
This commit is contained in:
parent
0d63ecdad0
commit
cf4ded82d0
3 changed files with 10 additions and 4 deletions
|
@ -11792,6 +11792,7 @@ clear_command (char *arg, int from_tty)
|
|||
sals = decode_line_with_current_source (arg,
|
||||
(DECODE_LINE_FUNFIRSTLINE
|
||||
| DECODE_LINE_LIST_MODE));
|
||||
make_cleanup (xfree, sals.sals);
|
||||
default_match = 0;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue