Blame SOURCES/0172-v2v-Close-libvirt-connection-after-fetching-libvirt-.patch

ffd6ed
From e4405a97c967e3e259c987d5fd05283e729f2634 Mon Sep 17 00:00:00 2001
ffd6ed
From: "Richard W.M. Jones" <rjones@redhat.com>
ffd6ed
Date: Tue, 12 May 2015 22:19:08 +0100
ffd6ed
Subject: [PATCH] v2v: Close libvirt connection after fetching libvirt
ffd6ed
 capabilities.
ffd6ed
ffd6ed
Memory leak found by valgrind.
ffd6ed
ffd6ed
This fixes commit e7833a5eea350ca3579d1f9e6702e116b45572fc.
ffd6ed
ffd6ed
(cherry picked from commit 85347e32e02a412b8b17100b7eb5d39d1e83b66d)
ffd6ed
---
ffd6ed
 v2v/domainxml-c.c | 2 ++
ffd6ed
 1 file changed, 2 insertions(+)
ffd6ed
ffd6ed
diff --git a/v2v/domainxml-c.c b/v2v/domainxml-c.c
ffd6ed
index ea93c41..7750772 100644
ffd6ed
--- a/v2v/domainxml-c.c
ffd6ed
+++ b/v2v/domainxml-c.c
ffd6ed
@@ -413,6 +413,8 @@ v2v_capabilities (value connv, value unitv)
ffd6ed
   capabilitiesv = caml_copy_string (capabilities);
ffd6ed
   free (capabilities);
ffd6ed
 
ffd6ed
+  virConnectClose (conn);
ffd6ed
+
ffd6ed
   CAMLreturn (capabilitiesv);
ffd6ed
 }
ffd6ed
 
ffd6ed
-- 
ffd6ed
1.8.3.1
ffd6ed