[Python-Dev] Potential NULL pointer dereference in descrobject.c

Benjamin Peterson benjamin at python.org
Sat Dec 17 17:20:38 CET 2011


2011/12/17 Eli Collins <elic at astllc.org>
>
> In that same code, right before "PY_DECREF(descr)", should there also be a "PY_XDECREF(type)"? it looks like it might leak a reference to "type" otherwise.


No. The descr will deallocate it.

PS. Please don't send HTML mail.



--
Regards,
Benjamin


More information about the Python-Dev mailing list