]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuDomainDetachPciDiskDevice: Free allocated cgroup
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 15 Mar 2012 10:47:13 +0000 (11:47 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 15 Mar 2012 16:10:22 +0000 (17:10 +0100)
This function potentially allocates new virCgroup but never
frees it.

src/qemu/qemu_hotplug.c

index e088a49121d48a06208ed04fae199bebcd2488d8..f1c1283c7579ed7fe432fbb8c80fdfa2f7783dfa 100644 (file)
@@ -1621,6 +1621,7 @@ int qemuDomainDetachPciDiskDevice(struct qemud_driver *driver,
     ret = 0;
 
 cleanup:
+    virCgroupFree(&cgroup);
     VIR_FREE(drivestr);
     return ret;
 }