Author lelit
Recipients lelit
Date 2017-12-11.09:41:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512985273.03.0.213398074469.issue32274@psf.upfronthosting.co.za>
In-reply-to
Content
The function calls ``sqlite3_open()`` that, if I understand its documentation correctly[#], returns a new connection object in all cases (that is, even on errors) with the only exception of "out of memory" (in which case it sets the second parameter to ``NULL``).

I think that the new connection object should be immediately released in case of errors, passing it to ``sqlite3_close()``.

.. [#] http://sqlite.org/c3ref/open.html
History
Date User Action Args
2017-12-11 09:41:13lelitsetrecipients: + lelit
2017-12-11 09:41:13lelitsetmessageid: <1512985273.03.0.213398074469.issue32274@psf.upfronthosting.co.za>
2017-12-11 09:41:12lelitlinkissue32274 messages
2017-12-11 09:41:12lelitcreate