提交 922fbeb8 编写于 作者: D Daniel P. Berrange

Don't free C object after destroy method in python

上级 3af422a8
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
......
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册