File 20013-xend-memleak.patch of Package xen

Index: xen-3.3.1-testing/tools/python/xen/xend/XendStateStore.py
===================================================================
--- xen-3.3.1-testing.orig/tools/python/xen/xend/XendStateStore.py
+++ xen-3.3.1-testing/tools/python/xen/xend/XendStateStore.py
@@ -147,6 +147,7 @@ class XendStateStore:
                     cls_dict[val_name] = bool(int(val_text))
             state[uuid] = cls_dict
 
+        dom.unlink()
         return state
 
     def save_state(self, cls, state):
@@ -226,5 +227,5 @@ class XendStateStore:
                     node.appendChild(val_node)
 
         open(xml_path, 'w').write(doc.toprettyxml())
-        
+        doc.unlink()
     
openSUSE Build Service is sponsored by