tests: qemu: use VIR_AUTOSTRINGLIST where possible

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
Ján Tomko 2020-07-28 22:12:34 +02:00
parent bcbb026993
commit 51be622d76

View File

@ -130,7 +130,7 @@ static virStorageVolPtr
fakeStorageVolLookupByName(virStoragePoolPtr pool, fakeStorageVolLookupByName(virStoragePoolPtr pool,
const char *name) const char *name)
{ {
char **volinfo = NULL; VIR_AUTOSTRINGLIST volinfo = NULL;
virStorageVolPtr ret = NULL; virStorageVolPtr ret = NULL;
if (STREQ(pool->name, "inactive")) { if (STREQ(pool->name, "inactive")) {
@ -158,7 +158,6 @@ fakeStorageVolLookupByName(virStoragePoolPtr pool,
NULL, NULL); NULL, NULL);
cleanup: cleanup:
virStringListFree(volinfo);
return ret; return ret;
fallback: fallback: