Skip to content

Commit b80775e

Browse files
author
Fredrik Lundh
committed
Fixed reference counting error when using the entity dictionary
(reported by Chris Olds). Backported from the 1.0.6 development branch.
1 parent 835b243 commit b80775e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Modules/_elementtree.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,6 @@ expat_default_handler(XMLParserObject* self, const XML_Char* data_in,
19561956
res = PyObject_CallFunction(self->handle_data, "O", value);
19571957
else
19581958
res = NULL;
1959-
Py_DECREF(value);
19601959
Py_XDECREF(res);
19611960
} else {
19621961
PyErr_Format(

0 commit comments

Comments
 (0)