mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 10:03:49 +03:00
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,
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user