Skip to content

Instantly share code, notes, and snippets.

@MirkoDziadzka
Created December 17, 2013 16:17
Show Gist options
  • Save MirkoDziadzka/8007614 to your computer and use it in GitHub Desktop.
Save MirkoDziadzka/8007614 to your computer and use it in GitHub Desktop.
memory leak in reportlab.lib.xmllib
# show memory leak
#
# run this programm and check memory consumption in a second window
#
import gc
from reportlab.lib import xmllib
assert xmllib.sgmlop # check that we are using FastXMLParser
while True:
parser = xmllib.XMLParser(verbose=0)
parser.close()
gc.collect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment