summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/pyexpat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 3039347..067b775 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -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;
}