returning when an exception was caught.
+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
{
/* 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);
pending = 1;
}
else
- return rc;
+ {
+ xfree (err_msg);
+ return rc;
+ }
}
else if (!sals.nelts)
return GDB_RC_FAIL;