diff options
author | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-03-02 06:51:39 +0100 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2022-03-02 06:51:39 +0100 |
commit | 75610acfd3cb9260c0f2fe45492f81d637bfd62c (patch) | |
tree | 204e0e86a702719d2fd921848176579e1f5d1631 /include/qemu/main-loop.h | |
parent | 37d1953448d58ac9313d4702913947f76c369338 (diff) | |
download | qemu-75610acfd3cb9260c0f2fe45492f81d637bfd62c.zip qemu-75610acfd3cb9260c0f2fe45492f81d637bfd62c.tar.gz qemu-75610acfd3cb9260c0f2fe45492f81d637bfd62c.tar.bz2 |
hw/ppc/spapr_drc.c: use g_auto in spapr_dt_drc()
Use g_autoptr() with GArray* and GString* pointers to avoid calling
g_free() and the need for the 'out' label.
'drc_name' can also be g_autofreed to avoid a g_free() call at the end
of the while() loop.
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220228175004.8862-7-danielhb413@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'include/qemu/main-loop.h')
0 files changed, 0 insertions, 0 deletions