mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* breakpoint.c (bpstat_stop_status): Fix a small memory leak.
This commit is contained in:
@@ -2763,9 +2763,9 @@ bpstat_stop_status (CORE_ADDR *pc, int not_a_sw_breakpoint)
|
||||
/* We will stop here */
|
||||
if (b->disposition == disp_disable)
|
||||
b->enable_state = bp_disabled;
|
||||
bs->commands = copy_command_lines (b->commands);
|
||||
if (b->silent)
|
||||
bs->print = 0;
|
||||
bs->commands = b->commands;
|
||||
if (bs->commands &&
|
||||
(STREQ ("silent", bs->commands->line) ||
|
||||
(xdb_commands && STREQ ("Q", bs->commands->line))))
|
||||
@@ -2773,6 +2773,7 @@ bpstat_stop_status (CORE_ADDR *pc, int not_a_sw_breakpoint)
|
||||
bs->commands = bs->commands->next;
|
||||
bs->print = 0;
|
||||
}
|
||||
bs->commands = copy_command_lines (bs->commands);
|
||||
}
|
||||
}
|
||||
/* Print nothing for this entry if we dont stop or if we dont print. */
|
||||
|
||||
Reference in New Issue
Block a user