diff options
| author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | 2024-01-22 19:15:26 -0300 |
|---|---|---|
| committer | Alistair Francis <alistair.francis@wdc.com> | 2024-02-09 20:43:14 +1000 |
| commit | 5d0e3bcb6648253f00e51c8240ff1998ab94f3f3 (patch) | |
| tree | cc37d3db377577f456d2afe1bb76ad8ff4016635 /scripts/qapi/source.py | |
| parent | 73cdf38a92674768d2351cb4137a5dc9f116132b (diff) | |
| download | focaccia-qemu-5d0e3bcb6648253f00e51c8240ff1998ab94f3f3.tar.gz focaccia-qemu-5d0e3bcb6648253f00e51c8240ff1998ab94f3f3.zip | |
hw/riscv/virt.c: use g_autofree in create_fdt_sockets()
Move 'clust_name' inside the loop, and g_autofree, to avoid having to g_free() manually in each loop iteration. 'intc_phandles' is also g_autofreed to avoid another manual g_free(). Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-ID: <20240122221529.86562-5-dbarboza@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions