Commit b80775ec authored by Fredrik Lundh's avatar Fredrik Lundh

Fixed reference counting error when using the entity dictionary

(reported by Chris Olds).  Backported from the 1.0.6 development
branch.
parent 835b243c
...@@ -1956,7 +1956,6 @@ expat_default_handler(XMLParserObject* self, const XML_Char* data_in, ...@@ -1956,7 +1956,6 @@ expat_default_handler(XMLParserObject* self, const XML_Char* data_in,
res = PyObject_CallFunction(self->handle_data, "O", value); res = PyObject_CallFunction(self->handle_data, "O", value);
else else
res = NULL; res = NULL;
Py_DECREF(value);
Py_XDECREF(res); Py_XDECREF(res);
} else { } else {
PyErr_Format( PyErr_Format(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment