diff options
author | 2024-01-22 19:15:29 -0300 | |
---|---|---|
committer | 2024-02-09 20:43:14 +1000 | |
commit | 5fb20f76008e13f99ec42867f4ebd4089b71ba96 (patch) | |
tree | d9aced3af676575b20862921d44d0726103184ba /docs/conf.py | |
parent | hw/riscv/virt.c: use g_autofree in virt_machine_init() (diff) | |
download | qemu-5fb20f76008e13f99ec42867f4ebd4089b71ba96.tar.xz 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 'docs/conf.py')
0 files changed, 0 insertions, 0 deletions