]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/riscv/virt.c: use g_autofree in create_fdt_socket_cpus()
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Mon, 22 Jan 2024 22:15:25 +0000 (19:15 -0300)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 9 Feb 2024 10:43:14 +0000 (20:43 +1000)
commit73cdf38a92674768d2351cb4137a5dc9f116132b
treecd78e7bc9e23973c1337704a3c0cf7c21823ada7
parent74416394b57e4bcd73c5d90eb7f2bd4d9a6e1ac8
hw/riscv/virt.c: use g_autofree in create_fdt_socket_cpus()

Move all char pointers to the loop. Use g_autofree in all of them to
avoid the g_free() calls.

Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240122221529.86562-4-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/virt.c