summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-03-03 04:37:45 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-03-03 04:37:45 (GMT)
commitca752f3b1a12c950215f5d068f2f34cba96262a2 (patch)
treef0fc56e28e040a7f3f408e338b0f77cd3a9bb19b
parent7dbd91811d87b75cb43441ed6e356232bcf60d28 (diff)
downloadcpython-ca752f3b1a12c950215f5d068f2f34cba96262a2.zip
cpython-ca752f3b1a12c950215f5d068f2f34cba96262a2.tar.gz
cpython-ca752f3b1a12c950215f5d068f2f34cba96262a2.tar.bz2
Only DECREF if ret != NULL
-rw-r--r--Modules/_sqlite/connection.c2
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;
}