[libvirt] [PATCH] Fix virInterfaceIpDefPtr leak during virInterfaceIpDefFree().

Laine Stump laine at laine.org
Mon Nov 2 13:34:50 UTC 2009


This is the only update to the patchset already sent. All other problems
were either in netcf code, or will be cleaned up later.

A patch has been sent to netcf-devel which, when applied, allows make
check of libvirt plus the patch series to complete with no errors.

There is still one issue, affecting bond interfaces, which is not
revealed by make check. I'll describe that in a separate email.
---
 src/conf/interface_conf.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/conf/interface_conf.c b/src/conf/interface_conf.c
index fc18eba..31af957 100644
--- a/src/conf/interface_conf.c
+++ b/src/conf/interface_conf.c
@@ -58,6 +58,7 @@ void virInterfaceIpDefFree(virInterfaceIpDefPtr def) {
     if (def == NULL)
         return;
     VIR_FREE(def->address);
+    VIR_FREE(def);
 }
 
 static
-- 
1.6.5.15.gc274d




More information about the libvir-list mailing list