mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-25 19:58:06 +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:
@ -449,7 +449,7 @@ bppy_get_condition (PyObject *self, void *closure)
|
||||
|
||||
BPPY_REQUIRE_VALID (obj);
|
||||
|
||||
str = obj->bp->cond_string;
|
||||
str = obj->bp->cond_string.get ();
|
||||
if (! str)
|
||||
Py_RETURN_NONE;
|
||||
|
||||
|
Reference in New Issue
Block a user