euscanwww: adding elem.clear() to prevent memory leaking in xml parsing
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
		| @@ -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: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user