mirror of https://gitee.com/openkylin/libvirt.git
qemu_domain: Don't leak @paths in qemuDomainNamespaceSetupDisk
Introduced in d3db304d2e
. 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)
|
||||
return -1;
|
||||
goto cleanup;
|
||||
|
||||
ret = 0;
|
||||
cleanup:
|
||||
|
|
Loading…
Reference in New Issue