mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user