mirror of
https://github.com/python/cpython.git
synced 2025-12-08 18:32:16 +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;
|
rc = 1;
|
||||||
} else {
|
} else {
|
||||||
rc = (int)PyObject_IsTrue(ret);
|
rc = (int)PyObject_IsTrue(ret);
|
||||||
|
Py_DECREF(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
Py_DECREF(ret);
|
|
||||||
PyGILState_Release(gilstate);
|
PyGILState_Release(gilstate);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue