From f5e5ba3a550d84b18cb2c4d8efe2c7d1c45c10ef Mon Sep 17 00:00:00 2001 From: Daniel Henrique Barboza Date: Wed, 2 Sep 2020 17:25:42 -0300 Subject: [PATCH] cpu_ppc64.c: register AUTOPTR_CLEANUP_FUNC for virCPUppc64MapPtr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Next patch will use g_autoptr() in virCPUppc64MapPtr pointers for some cleanups. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Ján Tomko Signed-off-by: Ján Tomko --- src/cpu/cpu_ppc64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cpu/cpu_ppc64.c b/src/cpu/cpu_ppc64.c index 261fe3dbe6..607b5bc322 100644 --- a/src/cpu/cpu_ppc64.c +++ b/src/cpu/cpu_ppc64.c @@ -273,6 +273,7 @@ ppc64MapFree(virCPUppc64MapPtr map) VIR_FREE(map); } +G_DEFINE_AUTOPTR_CLEANUP_FUNC(virCPUppc64Map, ppc64MapFree); static int ppc64VendorParse(xmlXPathContextPtr ctxt G_GNUC_UNUSED,