changeset 681:3e7cd32c9411 trunk

Fix another memory leak in the C speedups code. Thanks to Erik Bray for finding this one and providing a patch. Closes #166 (again).
author cmlenz
date Tue, 05 Feb 2008 17:27:36 +0000
parents ae54722b00d1
children 0653f6c1ffdf
files genshi/_speedups.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/genshi/_speedups.c
+++ b/genshi/_speedups.c
@@ -417,6 +417,7 @@
     }
     PyTuple_SET_ITEM(args, 0, result);
     result = PyString_Format(format, args);
+    Py_DECREF(format);
     Py_DECREF(args);
     return result;
 }
Copyright (C) 2012-2017 Edgewall Software