summary refs log tree commit diff stats
path: root/scripts/qapi/parser.py
diff options
context:
space:
mode:
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>2024-01-22 19:15:29 -0300
committerAlistair Francis <alistair.francis@wdc.com>2024-02-09 20:43:14 +1000
commit5fb20f76008e13f99ec42867f4ebd4089b71ba96 (patch)
treed9aced3af676575b20862921d44d0726103184ba /scripts/qapi/parser.py
parentc70dc31f3010931e700e4786e2a3d8ab474c6a05 (diff)
downloadfocaccia-qemu-5fb20f76008e13f99ec42867f4ebd4089b71ba96.tar.gz
focaccia-qemu-5fb20f76008e13f99ec42867f4ebd4089b71ba96.zip
hw/riscv/virt.c: use g_autofree in create_fdt_*
We have a lot of cases where a char or an uint32_t pointer is used once
to alloc a string/array, read/written during the function, and then
g_free() at the end. There's no pointer re-use - a single alloc, a
single g_free().

Use 'g_autofree' to avoid the g_free() calls.

Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20240122221529.86562-8-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions