aboutsummaryrefslogtreecommitdiff
path: root/.gitignore
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 /.gitignore
parentc70dc31f3010931e700e4786e2a3d8ab474c6a05 (diff)
downloadqemu-5fb20f76008e13f99ec42867f4ebd4089b71ba96.zip
qemu-5fb20f76008e13f99ec42867f4ebd4089b71ba96.tar.gz
qemu-5fb20f76008e13f99ec42867f4ebd4089b71ba96.tar.bz2
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 '.gitignore')
0 files changed, 0 insertions, 0 deletions