mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-29 07:10:55 +08:00
Use unique_xmalloc_ptr in watchpoint
This changes struct watchpoint to use unique_xmalloc_ptr in a couple of places, removing a bit of manual memory management.
This commit is contained in:
@ -433,7 +433,7 @@ bppy_get_expression (PyObject *self, void *closure)
|
||||
|
||||
wp = (struct watchpoint *) obj->bp;
|
||||
|
||||
str = wp->exp_string;
|
||||
str = wp->exp_string.get ();
|
||||
if (! str)
|
||||
str = "";
|
||||
|
||||
|
Reference in New Issue
Block a user