Commit 72172427 authored by Christian Heimes's avatar Christian Heimes

Fix segfault in pyexpat.c caused by 84375

u can be NULL, use XDECREF
parent 82e6b94b
......@@ -1129,7 +1129,7 @@ PyUnknownEncodingHandler(void *encodingHandlerData,
u = PyUnicode_Decode((char*) template_buffer, 256, name, "replace");
if (u == NULL || PyUnicode_READY(u)) {
Py_DECREF(u);
Py_XDECREF(u);
return XML_STATUS_ERROR;
}
......
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