[PATCHv2 0/1] Use g_autoptr and g_autofree in cpu.c