From: Fredrik Lundh Date: Sat, 17 Dec 2005 08:33:21 +0000 (+0000) Subject: Fixed reference counting error when using the entity dictionary X-Git-Tag: v2.5a0~1009 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b80775ecf1ef62d6e101a1048dc2c2e2e3cb5e6d;p=thirdparty%2FPython%2Fcpython.git Fixed reference counting error when using the entity dictionary (reported by Chris Olds). Backported from the 1.0.6 development branch. --- diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index 4ba70c7ce432..af813bd54bd0 100644 --- a/Modules/_elementtree.c +++ b/Modules/_elementtree.c @@ -1956,7 +1956,6 @@ expat_default_handler(XMLParserObject* self, const XML_Char* data_in, res = PyObject_CallFunction(self->handle_data, "O", value); else res = NULL; - Py_DECREF(value); Py_XDECREF(res); } else { PyErr_Format(