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:
Tom Tromey
2021-10-02 17:17:27 -06:00
parent 23d6ee6405
commit 6f781ee300
6 changed files with 60 additions and 63 deletions

View File

@ -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;