Only DECREF if ret != NULL

This commit is contained in:
Neal Norwitz 2008-03-03 04:37:45 +00:00
parent 7dbd91811d
commit ca752f3b1a

View file

@ -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;
}