diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2005-01-04 13:31:46 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2005-01-04 13:31:46 +0000 |
commit | 3a63c4b7c363792f556dcf1247aa18721a3d140c (patch) | |
tree | e80efd6364342b6e5eaa293d722bbd5c1492ba64 /gdb/breakpoint.c | |
parent | 5b18a4bc0911700a6c81bb39cf4397ef02849131 (diff) | |
download | gdb-3a63c4b7c363792f556dcf1247aa18721a3d140c.zip gdb-3a63c4b7c363792f556dcf1247aa18721a3d140c.tar.gz gdb-3a63c4b7c363792f556dcf1247aa18721a3d140c.tar.bz2 |
* breakpoint.c (break_command_1): Always free err_msg before
returning when an exception was caught.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 5774920..20134e5 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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; |