diff Modules/_sqlite/cache.c @ 41959:f2277439dcdc 2.5

Backport rev. 55783: Patch by Tim Delany (missing DECREF). SF #1731330.
author Georg Brandl <georg@python.org>
date Tue, 05 Jun 2007 22:06:28 +0000
parents 7da4af95ebad
children 787b969d37f0
line wrap: on
line diff
--- a/Modules/_sqlite/cache.c	Tue Jun 05 19:28:15 2007 +0000
+++ b/Modules/_sqlite/cache.c	Tue Jun 05 22:06:28 2007 +0000
@@ -243,6 +243,7 @@
         }
         template = PyString_FromString("%s <- %s ->%s\n");
         if (!template) {
+            Py_DECREF(fmt_args);
             return NULL;
         }
         display_str = PyString_Format(template, fmt_args);