[issue32274] Potential leak in pysqlite_connection_init()
Julien Palard
report at bugs.python.org
Mon Dec 11 05:35:31 EST 2017
Julien Palard <julien+python at palard.fr> added the comment:
I don't see a leak here: as long as nobody keep a reference to each connection objects, pysqlite_connection_dealloc will be called and will call the sqlite3_close.
In other words the sqlite3_close is called when the connection is destroyed, which happen when no reference are kept on the connection, indifferently of a success or a failure of the connection.
It's in Modules/_sqlite/connection.c
----------
nosy: +mdk
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32274>
_______________________________________
More information about the Python-bugs-list
mailing list