Message308024
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 |
|
Date |
User |
Action |
Args |
2017-12-11 10:35:31 | mdk | set | recipients:
+ mdk, lelit |
2017-12-11 10:35:31 | mdk | set | messageid: <1512988531.36.0.213398074469.issue32274@psf.upfronthosting.co.za> |
2017-12-11 10:35:31 | mdk | link | issue32274 messages |
2017-12-11 10:35:31 | mdk | create | |
|