diff options
Diffstat (limited to 'Python/thread.c')
-rw-r--r-- | Python/thread.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/thread.c b/Python/thread.c index 8c8a4e8..3c1e78e 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -207,8 +207,7 @@ PyThread_GetInfo(void) if (value == NULL) #endif { - Py_INCREF(Py_None); - value = Py_None; + value = Py_NewRef(Py_None); } PyStructSequence_SET_ITEM(threadinfo, pos++, value); return threadinfo; |