mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
qemu_domain: Don't leak @paths in qemuDomainNamespaceSetupDisk
Introduced in d3db304d2e4. Instead of returning immediately we need to jump onto cleanup label where @paths is freed. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
53f9437748
commit
c247ff5529
@ -11199,7 +11199,7 @@ qemuDomainNamespaceSetupDisk(virDomainObjPtr vm,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (qemuDomainNamespaceMknodPaths(vm, paths, npaths) < 0)
|
if (qemuDomainNamespaceMknodPaths(vm, paths, npaths) < 0)
|
||||||
return -1;
|
goto cleanup;
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
cleanup:
|
cleanup:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user