]> xenbits.xensource.com Git - libvirt.git/commitdiff
Don't free C object after destroy method in python
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 21 May 2008 20:18:20 +0000 (20:18 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 21 May 2008 20:18:20 +0000 (20:18 +0000)
ChangeLog
python/generator.py

index edabea2bd75be95ae467886648867d0490972579..0fd68a20e6b2fa6a1fcce386fa62f8b854e20194 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed May 21 15:42:29 EST 2008 Daniel P. Berrange <berrange@redhat.com>
+
+       * python/generator.py: Don't free the underlying virDomainPtr
+       object after the virDomainDestroy call. Same for virNetworkPtr
+       From Cole Robinson.
+
 Wed May 21 15:42:29 EST 2008 Daniel P. Berrange <berrange@redhat.com>
 
        * src/qemu_conf.c: Run qemu with -help and don't pollute
index cb57bffdf364edb34b9a4ffe631f8a9f7e6de474..68a7203ef9adaf2be26a14f9fafac384a4b73fd6 100755 (executable)
@@ -628,12 +628,7 @@ function_classes = {}
 
 function_classes["None"] = []
 
-function_post = {
-    'virDomainDestroy': "self._o = None",
-    'virNetworkDestroy': "self._o = None",
-    'virStoragePoolDestroy': "self._o = None",
-    'virStorageVolDestroy': "self._o = None",
-}
+function_post = {}
 
 # Functions returning an integral type which need special rules to
 # check for errors and raise exceptions.