From 956f0f71f9381130dd643e5b9d334a3902a42699 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 5 Jun 2007 21:24:47 +0000 Subject: [PATCH] Patch by Tim Delany (missing DECREF). SF #1731330. --- Modules/_sqlite/cache.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.50.1