aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-threadevent.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-threadevent.c')
-rw-r--r--gdb/python/py-threadevent.c4
1 files changed, 1 insertions, 3 deletions
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;
}