Remove duplicated xmalloc in update_dprintf_command_list
Code in update_dprintf_command_list performed a duplicated memory allocation which caused an obvious memory leak. This removes the duplication. gdb/ 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be> * breakpoint.c (update_dprintf_command_list): Remove duplicated xmalloc.
This commit is contained in:
parent
110f91128c
commit
e31d7699a0
|
@ -1,3 +1,8 @@
|
|||
2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
|
||||
|
||||
* breakpoint.c (update_dprintf_command_list): Remove duplicated
|
||||
xmalloc.
|
||||
|
||||
2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
|
||||
|
||||
* reply_mig_hack.awk: Robustify parsing.
|
||||
|
|
|
@ -9057,7 +9057,6 @@ update_dprintf_command_list (struct breakpoint *b)
|
|||
struct command_line *printf_cmd_line
|
||||
= xmalloc (sizeof (struct command_line));
|
||||
|
||||
printf_cmd_line = xmalloc (sizeof (struct command_line));
|
||||
printf_cmd_line->control_type = simple_control;
|
||||
printf_cmd_line->body_count = 0;
|
||||
printf_cmd_line->body_list = NULL;
|
||||
|
|
Loading…
Reference in New Issue