From db6573d6646f950b5a758fd68d180de8ae1e8981 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 15 Aug 2012 14:22:02 +0000 Subject: PR python/14387: * python/py-bpevent.c (create_breakpoint_event_object): Update comment. * python/py-event.c (evpy_add_attribute): Update comment. * python/py-exitedevent.c (create_exited_event_object): Fix reference counting and error handling. * python/py-newobjfileevent.c (create_new_objfile_event_object): Fix reference counting. * python/py-signalevent.c (create_signal_event_object): Fix reference counting and error handling. * python/py-stopevent.c (emit_stop_event): Fix reference counting. * python/py-threadevent.c (get_event_thread): Return a borrowed reference. * python/py-type.c (convert_field): Fix reference counting. --- gdb/python/py-stopevent.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/python/py-stopevent.c') diff --git a/gdb/python/py-stopevent.c b/gdb/python/py-stopevent.c index 7e00948..d351915 100644 --- a/gdb/python/py-stopevent.c +++ b/gdb/python/py-stopevent.c @@ -81,6 +81,7 @@ emit_stop_event (struct bpstats *bs, enum gdb_signal stop_signal) stop_event_obj = create_breakpoint_event_object (list, first_bp); if (!stop_event_obj) goto fail; + Py_DECREF (list); } /* Check if the signal is "Signal 0" or "Trace/breakpoint trap". */ -- cgit v1.1