]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuxml2argvtest: Use 'g_hash_table_unref' for clearing the qapi schema cache
authorPeter Krempa <pkrempa@redhat.com>
Tue, 30 Nov 2021 13:07:36 +0000 (14:07 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 1 Dec 2021 12:53:12 +0000 (13:53 +0100)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
tests/qemuxml2argvtest.c

index b3fa676af7a5f6abe5375edc5b4638f35102f8cf..5e4cd7389c029838c24599f0af7352545eba32a8 100644 (file)
@@ -823,7 +823,7 @@ mymain(void)
     int ret = 0;
     g_autofree char *fakerootdir = NULL;
     g_autoptr(GHashTable) capslatest = testQemuGetLatestCaps();
-    g_autoptr(GHashTable) qapiSchemaCache = virHashNew((GDestroyNotify) virHashFree);
+    g_autoptr(GHashTable) qapiSchemaCache = virHashNew((GDestroyNotify) g_hash_table_unref);
     g_autoptr(GHashTable) capscache = virHashNew(virObjectFreeHashData);
     struct testQemuConf testConf = { .capslatest = capslatest,
                                      .capscache = capscache,