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-threadevent.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gdb/python/py-threadevent.c') diff --git a/gdb/python/py-threadevent.c b/gdb/python/py-threadevent.c index 67f9e20..d513945 100644 --- a/gdb/python/py-threadevent.c +++ b/gdb/python/py-threadevent.c @@ -21,7 +21,7 @@ running in non-stop mode then the event is thread specific, otherwise it is process wide. This function returns the currently stopped thread in non-stop mode and - Py_None otherwise. */ + Py_None otherwise. In each case it returns a borrowed reference. */ static PyObject * get_event_thread (void) @@ -39,8 +39,6 @@ get_event_thread (void) return NULL; } - Py_INCREF (thread); - return thread; } -- cgit v1.1