mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
cpu_ppc64.c: register AUTOPTR_CLEANUP_FUNC for virCPUppc64MapPtr
Next patch will use g_autoptr() in virCPUppc64MapPtr 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
c79825d705
commit
f5e5ba3a55
@ -273,6 +273,7 @@ ppc64MapFree(virCPUppc64MapPtr map)
|
|||||||
|
|
||||||
VIR_FREE(map);
|
VIR_FREE(map);
|
||||||
}
|
}
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(virCPUppc64Map, ppc64MapFree);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ppc64VendorParse(xmlXPathContextPtr ctxt G_GNUC_UNUSED,
|
ppc64VendorParse(xmlXPathContextPtr ctxt G_GNUC_UNUSED,
|
||||||
|
Loading…
Reference in New Issue
Block a user