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