From: Michal Privoznik Date: Thu, 15 Mar 2012 10:47:13 +0000 (+0100) Subject: qemuDomainDetachPciDiskDevice: Free allocated cgroup X-Git-Tag: v0.9.11-rc1~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=362c3b33e6f68bd0823c811767ed2c63bb1334c9;p=thirdparty%2Flibvirt.git qemuDomainDetachPciDiskDevice: Free allocated cgroup This function potentially allocates new virCgroup but never frees it. --- diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index e088a49121..f1c1283c75 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -1621,6 +1621,7 @@ int qemuDomainDetachPciDiskDevice(struct qemud_driver *driver, ret = 0; cleanup: + virCgroupFree(&cgroup); VIR_FREE(drivestr); return ret; }