diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-03 04:37:45 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-03 04:37:45 (GMT) |
commit | ca752f3b1a12c950215f5d068f2f34cba96262a2 (patch) | |
tree | f0fc56e28e040a7f3f408e338b0f77cd3a9bb19b | |
parent | 7dbd91811d87b75cb43441ed6e356232bcf60d28 (diff) | |
download | cpython-ca752f3b1a12c950215f5d068f2f34cba96262a2.zip cpython-ca752f3b1a12c950215f5d068f2f34cba96262a2.tar.gz cpython-ca752f3b1a12c950215f5d068f2f34cba96262a2.tar.bz2 |
Only DECREF if ret != NULL
-rw-r--r-- | Modules/_sqlite/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 1ce275c..92c6a24 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -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; } |