[Pkg-libvirt-commits] [libguestfs] 06/12: v2v: Close libvirt connection after fetching libvirt capabilities.
Hilko Bengen
bengen at moszumanska.debian.org
Sun Nov 1 17:11:55 UTC 2015
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag upstream/1.29.42
in repository libguestfs.
commit 85347e32e02a412b8b17100b7eb5d39d1e83b66d
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Tue May 12 22:19:08 2015 +0100
v2v: Close libvirt connection after fetching libvirt capabilities.
Memory leak found by valgrind.
This fixes commit e7833a5eea350ca3579d1f9e6702e116b45572fc.
---
v2v/domainxml-c.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/v2v/domainxml-c.c b/v2v/domainxml-c.c
index 865b18b..efedbe4 100644
--- a/v2v/domainxml-c.c
+++ b/v2v/domainxml-c.c
@@ -413,6 +413,8 @@ v2v_capabilities (value connv, value unitv)
capabilitiesv = caml_copy_string (capabilities);
free (capabilities);
+ virConnectClose (conn);
+
CAMLreturn (capabilitiesv);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list