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

[libvirt] [PATCH 08/14] test: Resource resource leak with 'tmp_vols'



---
 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 3e082a4..0e1d90c 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -4687,6 +4687,7 @@ testStoragePoolListAllVolumes(virStoragePoolPtr obj,
             if (tmp_vols[i])
                 virStorageVolFree(tmp_vols[i]);
         }
+        VIR_FREE(tmp_vols);
     }
 
     if (pool)
-- 
1.7.11.7


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