From: Guido van Rossum Date: Tue, 5 Jun 2007 21:24:47 +0000 (+0000) Subject: Patch by Tim Delany (missing DECREF). SF #1731330. X-Git-Tag: v2.6a1~1656 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=956f0f71f9381130dd643e5b9d334a3902a42699;p=python Patch by Tim Delany (missing DECREF). SF #1731330. --- diff --git a/Modules/_sqlite/cache.c b/Modules/_sqlite/cache.c index 18a40667ae..6094eb3a0b 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);