Package: python-mysqldb
Version: 1.2.2-7
Severity: important
Hello,
after a (long) database failure I realized that my application used a lot of
memory. After some debugging it was possible to reproduce the problem with the
following code snippet.
from MySQLdb import Connection
while True:
try:
conn = Connection(host='127.0.0.1', user='root', passwd='')
except Exception:
pass
The leak is caused by a resource not deallocated if a Exception happens.
This leak is already solved in the 'upstream' repository
http://mysql-python.svn.sourceforge.net/viewvc/mysql-python/branches/MySQLdb-1.2/MySQLdb/_mysql.c?r1=625&r2=630
I was wondering if it is possible to include that particular change into the
python-mysql version of debian ??
-- System Information:
Debian Release: 5.0.7
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.27.48-0.2-default (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]