mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
Use unique_xmalloc_ptr in breakpoint
This changes struct breakpoint to use unique_xmalloc_ptr in a couple of spots, removing a bit of manual memory management.
This commit is contained in:
@ -899,7 +899,7 @@ gdbscm_breakpoint_condition (SCM self)
|
||||
= bpscm_get_valid_breakpoint_smob_arg_unsafe (self, SCM_ARG1, FUNC_NAME);
|
||||
char *str;
|
||||
|
||||
str = bp_smob->bp->cond_string;
|
||||
str = bp_smob->bp->cond_string.get ();
|
||||
if (! str)
|
||||
return SCM_BOOL_F;
|
||||
|
||||
|
Reference in New Issue
Block a user