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

[libvirt] [PATCH 10/14] interface: Resolve resource leak wth 'tmp_iface_objs'



---
 src/interface/interface_backend_netcf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/interface/interface_backend_netcf.c b/src/interface/interface_backend_netcf.c
index 35335c2..8671717 100644
--- a/src/interface/interface_backend_netcf.c
+++ b/src/interface/interface_backend_netcf.c
@@ -399,6 +399,7 @@ cleanup:
             if (tmp_iface_objs[i])
                 virInterfaceFree(tmp_iface_objs[i]);
         }
+        VIR_FREE(tmp_iface_objs);
     }
 
     interfaceDriverUnlock(driver);
-- 
1.7.11.7


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