]> granicus.if.org Git - python/commitdiff
Fixed reference counting error when using the entity dictionary
authorFredrik Lundh <fredrik@pythonware.com>
Sat, 17 Dec 2005 08:33:21 +0000 (08:33 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Sat, 17 Dec 2005 08:33:21 +0000 (08:33 +0000)
(reported by Chris Olds).  Backported from the 1.0.6 development
branch.

Modules/_elementtree.c

index 4ba70c7ce43285232b446e5af035543b4875fbbf..af813bd54bd0b3a54fa0dbee711aa7ffd21e6771 100644 (file)
@@ -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(