From: Ján Tomko Date: Tue, 28 Jul 2020 20:12:34 +0000 (+0200) Subject: tests: qemu: use VIR_AUTOSTRINGLIST where possible X-Git-Tag: v6.7.0-rc1~613 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51be622d7613267ba92fdb19b005d4c6e9c96fcf;p=thirdparty%2Flibvirt.git tests: qemu: use VIR_AUTOSTRINGLIST where possible Signed-off-by: Ján Tomko Reviewed-by: Laine Stump --- diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index f28e88b6e5..01839cb88c 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -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: