[issue13014] Resource is not released before returning from the functiion

Stefan Krah report at bugs.python.org
Wed Sep 21 09:31:23 CEST 2011


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

This doesn't look right to me: If (rdn != NULL) && (PyList_Size(rdn) > 0),
rdn is already decremented.

There is a leak though if  (rdn != NULL) && (PyList_Size(rdn) == 0).

----------
nosy: +skrah

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13014>
_______________________________________


More information about the Python-bugs-list mailing list