From 5972e8631f3e7aa4173ebff6b42badd656937afa Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Fri, 2 Mar 2018 15:41:46 +0100 Subject: [PATCH] tests: qemuxml2xml: Rename testInfoFree to testInfoClear Signed-off-by: Peter Krempa --- tests/qemuxml2xmltest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 5306b819a3..f079083eb4 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -278,7 +278,7 @@ testCompareStatusXMLToXMLFiles(const void *opaque) static void -testInfoFree(struct testInfo *info) +testInfoClear(struct testInfo *info) { VIR_FREE(info->inName); VIR_FREE(info->outActiveName); @@ -345,7 +345,7 @@ testInfoSet(struct testInfo *info, return 0; error: - testInfoFree(info); + testInfoClear(info); return -1; } @@ -404,7 +404,7 @@ mymain(void) testCompareStatusXMLToXMLFiles, &info) < 0) \ ret = -1; \ } \ - testInfoFree(&info); \ + testInfoClear(&info); \ } while (0) # define NONE QEMU_CAPS_LAST -- GitLab