commit | 721724270d5623cda4867a871aa34788dbf09021 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Sat Jun 29 21:49:27 2013 +0200 |
committer | Christian Heimes <christian@cheimes.de> | Sat Jun 29 21:49:27 2013 +0200 |
tree | 36d5a6f2f2ba2d30e052cb21792e0f5de694cb51 | |
parent | 82e6b94b9523beae3590d0c43eac15bf82a62c35 [diff] [blame] |
Fix segfault in pyexpat.c caused by 84375 u can be NULL, use XDECREF
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 @@ 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; }