Fix segfault in pyexpat.c caused by 84375

u can be NULL, use XDECREF
This commit is contained in:
Christian Heimes 2013-06-29 21:49:27 +02:00
parent 82e6b94b95
commit 721724270d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}