mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 00:59:15 +08:00
2011-02-26 Michael Snyder <msnyder@vmware.com>
* breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
2011-02-26 Michael Snyder <msnyder@vmware.com>
|
2011-02-26 Michael Snyder <msnyder@vmware.com>
|
||||||
|
|
||||||
|
* breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
|
||||||
|
|
||||||
* maint.c (maintenance_do_deprecate): Plug a memory leak.
|
* maint.c (maintenance_do_deprecate): Plug a memory leak.
|
||||||
|
|
||||||
* dwarf2loc.c (insert_bits): Avoid shadowing a function param
|
* dwarf2loc.c (insert_bits): Avoid shadowing a function param
|
||||||
|
@ -1989,7 +1989,7 @@ reattach_breakpoints (int pid)
|
|||||||
struct cleanup *old_chain;
|
struct cleanup *old_chain;
|
||||||
struct bp_location *bl, **blp_tmp;
|
struct bp_location *bl, **blp_tmp;
|
||||||
int val;
|
int val;
|
||||||
struct ui_file *tmp_error_stream = mem_fileopen ();
|
struct ui_file *tmp_error_stream;
|
||||||
int dummy1 = 0, dummy2 = 0;
|
int dummy1 = 0, dummy2 = 0;
|
||||||
struct inferior *inf;
|
struct inferior *inf;
|
||||||
struct thread_info *tp;
|
struct thread_info *tp;
|
||||||
@ -2003,6 +2003,7 @@ reattach_breakpoints (int pid)
|
|||||||
|
|
||||||
inferior_ptid = tp->ptid;
|
inferior_ptid = tp->ptid;
|
||||||
|
|
||||||
|
tmp_error_stream = mem_fileopen ();
|
||||||
make_cleanup_ui_file_delete (tmp_error_stream);
|
make_cleanup_ui_file_delete (tmp_error_stream);
|
||||||
|
|
||||||
ALL_BP_LOCATIONS (bl, blp_tmp)
|
ALL_BP_LOCATIONS (bl, blp_tmp)
|
||||||
|
Reference in New Issue
Block a user