From 721724270d5623cda4867a871aa34788dbf09021 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 29 Jun 2013 21:49:27 +0200 Subject: Fix segfault in pyexpat.c caused by 84375 u can be NULL, use XDECREF --- Modules/pyexpat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v0.12