[New-bugs-announce] [issue22272] sqlite3 memory leaks in cursor.execute

A. Libotean report at bugs.python.org
Mon Aug 25 18:26:49 CEST 2014

New submission from A. Libotean:

There are significant memory leaks when multiple insert statements are executed with distinct values.

sqlite3 version is 2.6.0

The attached file contains two variants:

* one which uses string interpolation to build the query: this generates severe leakeage
* the other one is using parametrized queries and the leakeage is not as bad

I'm assuming that somehow the query string reference is not freed properly.

components: Extension Modules
files: leaking.py
messages: 225878
nosy: alibotean, ghaering
priority: normal
severity: normal
status: open
title: sqlite3 memory leaks in cursor.execute
type: resource usage
versions: Python 2.7
Added file: http://bugs.python.org/file36470/leaking.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list