PR python/14387:
[binutils-gdb.git] / gdb / python / py-threadevent.c
index 67f9e2006aa5e563bebe48182a0f45335ff786fe..d5139450c6c6fea27fb4822145ff02efdf99f807 100644 (file)
@@ -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;
 }