From: Georg Brandl Date: Tue, 5 Jun 2007 22:06:28 +0000 (+0000) Subject: Backport rev. 55783: X-Git-Tag: v2.5.2c1~277 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c98da3d811c77e201a28d8526cb1b0e10c0f4d05;p=python Backport rev. 55783: Patch by Tim Delany (missing DECREF). SF #1731330. --- diff --git a/Modules/_sqlite/cache.c b/Modules/_sqlite/cache.c index 6962695c8e..83ef70574e 100644 --- a/Modules/_sqlite/cache.c +++ b/Modules/_sqlite/cache.c @@ -243,6 +243,7 @@ PyObject* cache_display(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);