From b80775ecf1ef62d6e101a1048dc2c2e2e3cb5e6d Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Sat, 17 Dec 2005 08:33:21 +0000 Subject: [PATCH] Fixed reference counting error when using the entity dictionary (reported by Chris Olds). Backported from the 1.0.6 development branch. --- Modules/_elementtree.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index 4ba70c7ce43..af813bd54bd 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(