mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
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:
parent
0d4ee33633
commit
339525a68d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user