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;
}