# HG changeset patch # User cmlenz # Date 1202232456 0 # Node ID ae5378f813988e5dc637ea2d30d64ede0c34dc9d # Parent 3a949bcaaf3d39e52ec7e8c8dec49685f34fd548 Fix another memory leak in the C speedups code. Thanks to Erik Bray for finding this one and providing a patch. Closes #166 (again). diff --git a/genshi/_speedups.c b/genshi/_speedups.c --- 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; }