1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00

qemuDomainDetachPciDiskDevice: Free allocated cgroup

This function potentially allocates new virCgroup but never
frees it.
This commit is contained in:
Michal Privoznik 2012-03-15 11:47:13 +01:00
parent 89ae6a5a30
commit 362c3b33e6

View File

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