tests: qemuxml2xml: Rename testInfoFree to testInfoClear

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Peter Krempa 2018-03-02 15:41:46 +01:00
parent 1ab2574731
commit 5972e8631f

View File

@ -278,7 +278,7 @@ testCompareStatusXMLToXMLFiles(const void *opaque)
static void static void
testInfoFree(struct testInfo *info) testInfoClear(struct testInfo *info)
{ {
VIR_FREE(info->inName); VIR_FREE(info->inName);
VIR_FREE(info->outActiveName); VIR_FREE(info->outActiveName);
@ -345,7 +345,7 @@ testInfoSet(struct testInfo *info,
return 0; return 0;
error: error:
testInfoFree(info); testInfoClear(info);
return -1; return -1;
} }
@ -404,7 +404,7 @@ mymain(void)
testCompareStatusXMLToXMLFiles, &info) < 0) \ testCompareStatusXMLToXMLFiles, &info) < 0) \
ret = -1; \ ret = -1; \
} \ } \
testInfoFree(&info); \ testInfoClear(&info); \
} while (0) } while (0)
# define NONE QEMU_CAPS_LAST # define NONE QEMU_CAPS_LAST