]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: qemuxml2xml: Rename testInfoFree to testInfoClear
authorPeter Krempa <pkrempa@redhat.com>
Fri, 2 Mar 2018 14:41:46 +0000 (15:41 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 13 Mar 2018 12:05:43 +0000 (13:05 +0100)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
tests/qemuxml2xmltest.c

index 5306b819a3233a0a4b704676b63bada9a398c305..f079083eb45a8c93c0b7e4dd3fa9bd44cd13f287 100644 (file)
@@ -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