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:
parent
89ae6a5a30
commit
362c3b33e6
@ -1621,6 +1621,7 @@ int qemuDomainDetachPciDiskDevice(struct qemud_driver *driver,
|
||||
ret = 0;
|
||||
|
||||
cleanup:
|
||||
virCgroupFree(&cgroup);
|
||||
VIR_FREE(drivestr);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user