summaryrefslogtreecommitdiffstats
path: root/libvirt-qemu-override.c
diff options
context:
space:
mode:
authorJán Tomko <jtomko@redhat.com>2013-09-03 13:12:37 +0200
committerJán Tomko <jtomko@redhat.com>2013-09-03 13:19:17 +0200
commited0a51292d0a8283453a4638e3672347ed6d2dc9 (patch)
tree18ebab5071c255bd68fa825fba204da4721d15aa /libvirt-qemu-override.c
parentbf69603b2453f456fb975be6a42d34ad53860b4b (diff)
downloadlibvirt-python-split-ed0a51292d0a8283453a4638e3672347ed6d2dc9.zip
libvirt-python-split-ed0a51292d0a8283453a4638e3672347ed6d2dc9.tar.gz
libvirt-python-split-ed0a51292d0a8283453a4638e3672347ed6d2dc9.tar.xz
Fix leaks in python bindingsCVE-2013-4297
https://bugzilla.redhat.com/show_bug.cgi?id=1003828
Diffstat (limited to 'libvirt-qemu-override.c')
-rw-r--r--libvirt-qemu-override.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libvirt-qemu-override.c b/libvirt-qemu-override.c
index 8f1ce5e..6249031 100644
--- a/libvirt-qemu-override.c
+++ b/libvirt-qemu-override.c
@@ -21,6 +21,7 @@
#include <libvirt/virterror.h>
#include "typewrappers.h"
#include "libvirt-qemu.h"
+#include "viralloc.h"
#ifndef __CYGWIN__
extern void initlibvirtmod_qemu(void);
@@ -79,6 +80,7 @@ libvirt_qemu_virDomainQemuMonitorCommand(PyObject *self ATTRIBUTE_UNUSED,
return VIR_PY_NONE;
py_retval = PyString_FromString(result);
+ VIR_FREE(result);
return py_retval;
}
@@ -108,6 +110,7 @@ libvirt_qemu_virDomainQemuAgentCommand(PyObject *self ATTRIBUTE_UNUSED, PyObject
return VIR_PY_NONE;
py_retval = PyString_FromString(result);
+ VIR_FREE(result);
return py_retval;
}
/************************************************************************