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

[libvirt] [PATCH] Free ifname in testDomainGenerateIfnames



https://bugzilla.redhat.com/show_bug.cgi?id=1135388
---

Pushed as trivial.

 src/test/test_driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index 3b22cf6..9918d2c 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -521,6 +521,7 @@ testDomainGenerateIfname(virDomainDefPtr domdef)
 
         if (!found)
             return ifname;
+        VIR_FREE(ifname);
     }
 
     virReportError(VIR_ERR_INTERNAL_ERROR,
-- 
1.8.5.5


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