mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
tests: qemuxml2xml: Rename testInfoFree to testInfoClear
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
1ab2574731
commit
5972e8631f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user