diff options
| author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | 2024-01-22 19:15:29 -0300 |
|---|---|---|
| committer | Alistair Francis <alistair.francis@wdc.com> | 2024-02-09 20:43:14 +1000 |
| commit | 5fb20f76008e13f99ec42867f4ebd4089b71ba96 (patch) | |
| tree | d9aced3af676575b20862921d44d0726103184ba /scripts/qapi/types.py | |
| parent | c70dc31f3010931e700e4786e2a3d8ab474c6a05 (diff) | |
| download | focaccia-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/types.py')
0 files changed, 0 insertions, 0 deletions