[issue15895] PyRun_SimpleFileExFlags() can leak a FILE pointer

Christian Heimes report at bugs.python.org
Mon Sep 10 11:31:35 CEST 2012


Christian Heimes added the comment:

No, that's not possible. 'fp' is part of the argument to PyRun_SimpleFileExFlags() and never NULL. We need some way to distinguish a externally provided fp from a self-opened fp and fclose(fp) in the latter case.

----------

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


More information about the Python-bugs-list mailing list