MySQLdb collectable memory leak

John Nagle nagle at animats.com
Fri Mar 16 20:16:52 CET 2007


It's not big, but it's there.  Just attaching to a MySQL
database with MySQLdb, then closing the connection without
doing anything results in some collectable garbage:

gc: collectable <cell 00DCDB30>
gc: collectable <function 00DC2D70>
gc: collectable <tuple 00DBAD78>
gc: collectable <tuple 00D73790>
gc: collectable <dict 00E81150>

(Python 2.4, MySQL 5, Windows 2000)

(For test purposes, I run with GC turned off, so if any
memory leaks, collectable or otherwise, are introduced, they're noticed.)

				John Nagle



More information about the Python-list mailing list