mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Only DECREF if ret != NULL
This commit is contained in:
parent
7dbd91811d
commit
ca752f3b1a
1 changed files with 1 additions and 1 deletions
|
@ -849,9 +849,9 @@ static int _progress_handler(void* user_arg)
|
|||
rc = 1;
|
||||
} else {
|
||||
rc = (int)PyObject_IsTrue(ret);
|
||||
Py_DECREF(ret);
|
||||
}
|
||||
|
||||
Py_DECREF(ret);
|
||||
PyGILState_Release(gilstate);
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue