[Python-Dev] cpython: Issue #18408: Fix fileio_read() on _PyBytes_Resize() failure
Christian Heimes
christian at python.org
Wed Jul 17 00:29:05 CEST 2013
Am 17.07.2013 00:03, schrieb Victor Stinner:
> 2013/7/16 Serhiy Storchaka <storchaka at gmail.com>:
>>> http://hg.python.org/cpython/rev/533eb9ab895a
>>> summary:
>>> Issue #18408: Fix fileio_read() on _PyBytes_Resize() failure
>>>
>>> bytes is NULL on _PyBytes_Resize() failure
>>
>> Why not Py_DECREF?
>
> Because Py_DECREF(NULL) does crash.
Why not Py_XDECREF() then?
More information about the Python-Dev
mailing list