[Python-checkins] r55784 - python/branches/release25-maint/Modules/_sqlite/cache.c

georg.brandl python-checkins at python.org
Wed Jun 6 00:06:34 CEST 2007


Author: georg.brandl
Date: Wed Jun  6 00:06:28 2007
New Revision: 55784

Modified:
   python/branches/release25-maint/Modules/_sqlite/cache.c
Log:
Backport rev. 55783:
Patch by Tim Delany (missing DECREF). SF #1731330.


Modified: python/branches/release25-maint/Modules/_sqlite/cache.c
==============================================================================
--- python/branches/release25-maint/Modules/_sqlite/cache.c	(original)
+++ python/branches/release25-maint/Modules/_sqlite/cache.c	Wed Jun  6 00:06:28 2007
@@ -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);


More information about the Python-checkins mailing list