euscanwww: adding elem.clear() to prevent memory leaking in xml parsing

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-06-30 11:03:24 +02:00
parent 145388a5e5
commit 94b814481b

View File

@ -141,6 +141,7 @@ class ScanPortage(object):
if elem.tag == "category":
# clean old data
cat = ""
elem.clear()
if self.purge_packages:
for package in current_packages: