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,
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: