Changeset
src/qemu/qemu_domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Git apply log
Switched to a new branch 'c247ff55293161d92b3c127334492252836e7ec4.1523893097.git.mprivozn@redhat.com'
Applying: qemu_domain: Don't leak @paths in qemuDomainNamespaceSetupDisk
Using index info to reconstruct a base tree...
M	src/qemu/qemu_domain.c
Falling back to patching base and 3-way merge...
No changes -- Patch already applied.
To https://github.com/patchew-project/libvirt
 * [new tag]         patchew/c247ff55293161d92b3c127334492252836e7ec4.1523893097.git.mprivozn@redhat.com -> patchew/c247ff55293161d92b3c127334492252836e7ec4.1523893097.git.mprivozn@redhat.com
Test passed: syntax-check

loading

[libvirt] [PATCH] qemu_domain: Don't leak @paths in qemuDomainNamespaceSetupDisk
Posted by Michal Privoznik, 3 days ago
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>
---

Pushed under trivial rule.

 src/qemu/qemu_domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index 7000de6a91..6e18886d07 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -11199,7 +11199,7 @@ qemuDomainNamespaceSetupDisk(virDomainObjPtr vm,
     }
 
     if (qemuDomainNamespaceMknodPaths(vm, paths, npaths) < 0)
-        return -1;
+        goto cleanup;
 
     ret = 0;
  cleanup:
-- 
2.16.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list