# HG changeset patch # User cmlenz # Date 1202232456 0 # Node ID 3e7cd32c941176162a72edee5e4de07b2212f53c # Parent ae54722b00d1fee776693cb373da4dbeeb24f918 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; }