From: Peter Krempa Date: Tue, 30 Nov 2021 13:07:36 +0000 (+0100) Subject: qemuxml2argvtest: Use 'g_hash_table_unref' for clearing the qapi schema cache X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d2f2c354dfb3e5ee4cf5a583477ebee15e00f78e;p=libvirt.git qemuxml2argvtest: Use 'g_hash_table_unref' for clearing the qapi schema cache Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko Reviewed-by: Martin Kletzander --- diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index b3fa676af7..5e4cd7389c 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -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,