Kaydet (Commit) ca752f3b authored tarafından Neal Norwitz's avatar Neal Norwitz

Only DECREF if ret != NULL

üst 7dbd9181
...@@ -849,9 +849,9 @@ static int _progress_handler(void* user_arg) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment