cpu_ppc64.c: register AUTOPTR_CLEANUP_FUNC for virCPUppc64VendorPtr

Next patch will use g_autoptr() in virCPUppc64VendorPtr pointers
for some cleanups.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Daniel Henrique Barboza 2020-09-02 17:25:36 -03:00 committed by Ján Tomko
parent 0d4ee33633
commit 339525a68d

View File

@ -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,