From 339525a68d281654622abbac4ab1d26b0415236d Mon Sep 17 00:00:00 2001 From: Daniel Henrique Barboza Date: Wed, 2 Sep 2020 17:25:36 -0300 Subject: [PATCH] cpu_ppc64.c: register AUTOPTR_CLEANUP_FUNC for virCPUppc64VendorPtr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Next patch will use g_autoptr() in virCPUppc64VendorPtr 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 2a7c955781..b003e48bed 100644 --- a/src/cpu/cpu_ppc64.c +++ b/src/cpu/cpu_ppc64.c @@ -152,6 +152,7 @@ ppc64VendorFree(virCPUppc64VendorPtr vendor) VIR_FREE(vendor->name); VIR_FREE(vendor); } +G_DEFINE_AUTOPTR_CLEANUP_FUNC(virCPUppc64Vendor, ppc64VendorFree); static virCPUppc64VendorPtr ppc64VendorFind(const struct ppc64_map *map,