We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54613a1 commit 9ccdb5fCopy full SHA for 9ccdb5f
1 file changed
Python/pylifecycle.c
@@ -3464,8 +3464,9 @@ wait_for_thread_shutdown(PyThreadState *tstate)
3464
result = PyObject_CallMethodNoArgs(threading, &_Py_ID(_shutdown));
3465
if (result == NULL) {
3466
PyErr_FormatUnraisable("Exception ignored on threading shutdown");
3467
+ } else {
3468
+ Py_DECREF(result);
3469
}
- Py_XDECREF(result);
3470
Py_DECREF(threading);
3471
3472
0 commit comments