]> granicus.if.org Git - python/commitdiff
Backport rev. 55783:
authorGeorg Brandl <georg@python.org>
Tue, 5 Jun 2007 22:06:28 +0000 (22:06 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 5 Jun 2007 22:06:28 +0000 (22:06 +0000)
Patch by Tim Delany (missing DECREF). SF #1731330.

Modules/_sqlite/cache.c

index 6962695c8e16fa9e07021c94782760bcad4bf10c..83ef70574eb298a813232d4951726db982075835 100644 (file)
@@ -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);