Skip to content

Commit 9ccdb5f

Browse files
committed
(I lied)
1 parent 54613a1 commit 9ccdb5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/pylifecycle.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3464,8 +3464,9 @@ wait_for_thread_shutdown(PyThreadState *tstate)
34643464
result = PyObject_CallMethodNoArgs(threading, &_Py_ID(_shutdown));
34653465
if (result == NULL) {
34663466
PyErr_FormatUnraisable("Exception ignored on threading shutdown");
3467+
} else {
3468+
Py_DECREF(result);
34673469
}
3468-
Py_XDECREF(result);
34693470
Py_DECREF(threading);
34703471
}
34713472

0 commit comments

Comments
 (0)