Mercurial > cpython-lru_cache-weakref
diff Modules/_sqlite/cache.c @ 41958:9af524e351f3 legacy-trunk
Patch by Tim Delany (missing DECREF). SF #1731330.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 05 Jun 2007 21:24:47 +0000 |
| parents | b9d4ced23506 |
| children | 6620a510e9a9 |
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 21:24:47 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);
