Message18862
Logged In: YES
user_id=413
While I'm at it, I think there might be a memory leak in my
__iter__ and iteritems() implementation when the resulting
generator objects are destroyed without completing their
iteration (as will happen in UserDict.DictMixIn.popitem
among other things).
They add their DBCursor to _DBWithCursor._iter_cursors but
only ever delete it from that hash before a return rather
than a yield. The solution to this should be simple: have
_closeCursors() empty the _iter_cursors hash after calling
close() on all of the cursors. __iter__ and iteritems()
already ignore a KeyError when trying to remove their cursor
from the map when returning. |
|
Date |
User |
Action |
Args |
2007-08-23 14:18:04 | admin | link | issue834461 messages |
2007-08-23 14:18:04 | admin | create | |
|