summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-06-05 21:24:47 (GMT)
committerGuido van Rossum <guido@python.org>2007-06-05 21:24:47 (GMT)
commit956f0f71f9381130dd643e5b9d334a3902a42699 (patch)
treec0db997ec28ec3a6d2518042e7915506dfc24a16 /Modules
parentf9a0ea8ce1b7907c2f3073be0539d0a0b067a8fa (diff)
downloadcpython-956f0f71f9381130dd643e5b9d334a3902a42699.zip
cpython-956f0f71f9381130dd643e5b9d334a3902a42699.tar.gz
cpython-956f0f71f9381130dd643e5b9d334a3902a42699.tar.bz2
Patch by Tim Delany (missing DECREF). SF #1731330.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sqlite/cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_sqlite/cache.c b/Modules/_sqlite/cache.c
index 18a4066..6094eb3 100644
--- a/Modules/_sqlite/cache.c
+++ b/Modules/_sqlite/cache.c
@@ -243,6 +243,7 @@ PyObject* pysqlite_cache_display(pysqlite_Cache* self, PyObject* args)
}
template = PyString_FromString("%s <- %s ->%s\n");
if (!template) {
+ Py_DECREF(fmt_args);
return NULL;
}
display_str = PyString_Format(template, fmt_args);