Created
December 17, 2013 16:17
-
-
Save MirkoDziadzka/8007614 to your computer and use it in GitHub Desktop.
memory leak in reportlab.lib.xmllib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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