From 6f781ee30062c822cf6475cfa070c6e7cf770de4 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 2 Oct 2021 17:17:27 -0600 Subject: 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. --- gdb/python/py-breakpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/python/py-breakpoint.c') diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c index 7ec73af..d99d9b1 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -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; -- cgit v1.1