* breakpoint.c (break_command_1): Always free err_msg before
returning when an exception was caught.
This commit is contained in:
parent
5b18a4bc09
commit
3a63c4b7c3
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-01-04 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* breakpoint.c (break_command_1): Always free err_msg before
|
||||
returning when an exception was caught.
|
||||
|
||||
2005-01-01 Joel Brobecker <brobecker@gnat.com>
|
||||
|
||||
* hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
|
||||
|
|
|
@ -5141,7 +5141,10 @@ break_command_1 (char *arg, int flag, int from_tty, struct breakpoint *pending_b
|
|||
{
|
||||
/* If called to resolve pending breakpoint, just return error code. */
|
||||
if (pending_bp)
|
||||
return rc;
|
||||
{
|
||||
xfree (err_msg);
|
||||
return rc;
|
||||
}
|
||||
|
||||
error_output_message (NULL, err_msg);
|
||||
xfree (err_msg);
|
||||
|
@ -5169,7 +5172,10 @@ break_command_1 (char *arg, int flag, int from_tty, struct breakpoint *pending_b
|
|||
pending = 1;
|
||||
}
|
||||
else
|
||||
return rc;
|
||||
{
|
||||
xfree (err_msg);
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
else if (!sals.nelts)
|
||||
return GDB_RC_FAIL;
|
||||
|
|
Loading…
Reference in a new issue