[Rpm-metadata] createrepo/yumbased.py

Seth Vidal skvidal at linux.duke.edu
Wed Jan 9 06:51:53 UTC 2008


 createrepo/yumbased.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 7f01cbbb028396a72709ea359766195e6bb6530f
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Wed Jan 9 01:50:07 2008 -0500

    free up memory in the changelog output used by generating the xml node

diff --git a/createrepo/yumbased.py b/createrepo/yumbased.py
index 237e968..cab3c47 100644
--- a/createrepo/yumbased.py
+++ b/createrepo/yumbased.py
@@ -293,7 +293,9 @@ class CreateRepoPackage(YumLocalPackage):
             c.newProp('author', utils.utf8String(author))
             c.newProp('date', str(ts))
             msg += c.serialize()
-            del c            
+            c.unlinkNode()
+            c.freeNode()  
+            del c
         return msg                                                 
 
     def do_primary_xml_dump(self, basedir, baseurl=None):



More information about the Rpm-metadata mailing list