]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: qemu: use VIR_AUTOSTRINGLIST where possible
authorJán Tomko <jtomko@redhat.com>
Tue, 28 Jul 2020 20:12:34 +0000 (22:12 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 3 Aug 2020 05:23:46 +0000 (07:23 +0200)
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
tests/qemuxml2argvtest.c

index f28e88b6e5fe70c91e38a8e88190a3c6243116a8..01839cb88c52bab20370f65fb2d96444a76bf1b2 100644 (file)
@@ -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: