提交 41813766 编写于 作者: J Ján Tomko
上级 b46c4787
...@@ -92,6 +92,7 @@ libvirt_lxc_virDomainLxcOpenNamespace(PyObject *self ATTRIBUTE_UNUSED, ...@@ -92,6 +92,7 @@ libvirt_lxc_virDomainLxcOpenNamespace(PyObject *self ATTRIBUTE_UNUSED,
goto error; goto error;
} }
} }
VIR_FREE(fdlist);
return py_retval; return py_retval;
error: error:
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <libvirt/virterror.h> #include <libvirt/virterror.h>
#include "typewrappers.h" #include "typewrappers.h"
#include "libvirt-qemu.h" #include "libvirt-qemu.h"
#include "viralloc.h"
#ifndef __CYGWIN__ #ifndef __CYGWIN__
extern void initlibvirtmod_qemu(void); extern void initlibvirtmod_qemu(void);
...@@ -79,6 +80,7 @@ libvirt_qemu_virDomainQemuMonitorCommand(PyObject *self ATTRIBUTE_UNUSED, ...@@ -79,6 +80,7 @@ libvirt_qemu_virDomainQemuMonitorCommand(PyObject *self ATTRIBUTE_UNUSED,
return VIR_PY_NONE; return VIR_PY_NONE;
py_retval = PyString_FromString(result); py_retval = PyString_FromString(result);
VIR_FREE(result);
return py_retval; return py_retval;
} }
...@@ -108,6 +110,7 @@ libvirt_qemu_virDomainQemuAgentCommand(PyObject *self ATTRIBUTE_UNUSED, PyObject ...@@ -108,6 +110,7 @@ libvirt_qemu_virDomainQemuAgentCommand(PyObject *self ATTRIBUTE_UNUSED, PyObject
return VIR_PY_NONE; return VIR_PY_NONE;
py_retval = PyString_FromString(result); py_retval = PyString_FromString(result);
VIR_FREE(result);
return py_retval; return py_retval;
} }
/************************************************************************ /************************************************************************
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册