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:
Michal Privoznik 2018-04-16 17:34:48 +02:00
parent 53f9437748
commit c247ff5529

View File

@ -11199,7 +11199,7 @@ qemuDomainNamespaceSetupDisk(virDomainObjPtr vm,
}
if (qemuDomainNamespaceMknodPaths(vm, paths, npaths) < 0)
return -1;
goto cleanup;
ret = 0;
cleanup: