spapr_cpu_core.c: use g_auto* in spapr_create_vcpu()
commit2a05350e90ba09b6f42f5cff81f4aa7580a998be
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Thu, 14 Jan 2021 18:06:26 +0000 (14 15:06 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 18 Jan 2021 23:20:29 +0000 (19 10:20 +1100)
tree329cdae49013cda7576e001e41e19c42067b67a6
parent7058904738106112a936b7438e29a1f252039644
spapr_cpu_core.c: use g_auto* in spapr_create_vcpu()

Use g_autoptr() with Object and g_autofree with the string to
avoid the need of a cleanup path.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20210114180628.1675603-6-danielhb413@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_cpu_core.c