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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22272>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to