|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH 5/7] hw/riscv/virt.c: use g_autofree in create_fdt_virtio() |
Date: | Tue, 23 Jan 2024 06:43:21 +0100 |
User-agent: | Mozilla Thunderbird |
On 22/1/24 23:15, Daniel Henrique Barboza wrote:
Put 'name' declaration inside the loop, with g_autofree, to avoid manually doing g_free() in each iteration. Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> --- hw/riscv/virt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[Prev in Thread] | Current Thread | [Next in Thread] |