Comment 1 for bug 439462

Revision history for this message
scoder (scoder) wrote :

With "leak", do you mean it isn't given back to the system? How do you measure the memory usage? Note that the Python interpreter does not necessarily free memory that it has allocated immediately when it is no longer used, so the size of the interpreter process is not necessarily a good measure.

Also note that using "element.attrib" creates cross-referenced objects that need garbage collection. You may want to run "gc.collect()" within or after the last loop to see if the memory is really permanently "leaking" or just temporarily allocated.