[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]