euscanwww: adding elem.clear() to prevent memory leaking in xml parsing
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
parent
145388a5e5
commit
94b814481b
@ -141,6 +141,7 @@ class ScanPortage(object):
|
|||||||
if elem.tag == "category":
|
if elem.tag == "category":
|
||||||
# clean old data
|
# clean old data
|
||||||
cat = ""
|
cat = ""
|
||||||
|
elem.clear()
|
||||||
|
|
||||||
if self.purge_packages:
|
if self.purge_packages:
|
||||||
for package in current_packages:
|
for package in current_packages:
|
||||||
|
Loading…
Reference in New Issue
Block a user