[Python-Dev] cpython: Fix memory leak in pyexpat PyUnknownEncodingHandler (original) (raw)
Christian Heimes christian at python.org
Sat Jun 29 21:51:19 CEST 2013
- Previous message: [Python-Dev] [Python-checkins] cpython: Fix memory leak in pyexpat PyUnknownEncodingHandler
- Next message: [Python-Dev] Issue 4199: combining assignment with global & nonlocal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Am 29.06.2013 21:29, schrieb R. David Murray:
I don't know if this is the commit at fault or not, but we are seeing segfaults in testxmletree on the buildbots now.
Yeah, it's my fault. Thanks!
u = PyUnicodeDecode((char*) templatebuffer, 256, name, "replace"); - if (u == NULL || PyUnicodeREADY(u))wr + PyDECREF(u); return XMLSTATUSERROR; + }
Py_DECREF() is wrong as u can be NULL. I have changed the code to use Py_XDECREF().
- Previous message: [Python-Dev] [Python-checkins] cpython: Fix memory leak in pyexpat PyUnknownEncodingHandler
- Next message: [Python-Dev] Issue 4199: combining assignment with global & nonlocal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]