New submission from Lele Gaifax <lelegai...@gmail.com>: 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 ---------- messages: 308021 nosy: lelit priority: normal severity: normal status: open title: Potential leak in pysqlite_connection_init() type: resource usage _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32274> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com