[libvirt PATCH 5/6] tests: qemu: use VIR_AUTOSTRINGLIST where possible

Ján Tomko jtomko at redhat.com
Tue Jul 28 23:43:20 UTC 2020


Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 tests/qemuxml2argvtest.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
index f26de13df1..ecf6562e90 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -130,7 +130,7 @@ static virStorageVolPtr
 fakeStorageVolLookupByName(virStoragePoolPtr pool,
                            const char *name)
 {
-    char **volinfo = NULL;
+    VIR_AUTOSTRINGLIST volinfo = NULL;
     virStorageVolPtr ret = NULL;
 
     if (STREQ(pool->name, "inactive")) {
@@ -158,7 +158,6 @@ fakeStorageVolLookupByName(virStoragePoolPtr pool,
                            NULL, NULL);
 
  cleanup:
-    virStringListFree(volinfo);
     return ret;
 
  fallback:
-- 
2.26.2




More information about the libvir-list mailing list