mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
bcbb026993
commit
51be622d76
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue