From 51be622d7613267ba92fdb19b005d4c6e9c96fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Tue, 28 Jul 2020 22:12:34 +0200 Subject: [PATCH] tests: qemu: use VIR_AUTOSTRINGLIST where possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ján Tomko Reviewed-by: Laine Stump --- tests/qemuxml2argvtest.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: