Home
last modified time | relevance | path

Searched hist:c2a33809e5c119f849625132544c19a180115549 (Results 1 – 1 of 1) sorted by relevance

/qemu/hw/arm/
H A Dsbsa-ref.cc2a33809e5c119f849625132544c19a180115549 Tue Sep 03 16:22:18 UTC 2024 Peter Maydell <peter.maydell@linaro.org> hw/arm/sbsa-ref: Don't leak string in sbsa_fdt_add_gic_node()

In sbsa_fdt_add_gic_node() we g_strdup_printf() two nodename
strings, but only free one.

Since the string is actually entirely constant and we don't
make any use of printf's format-string operations, we can
drop the g_strdup_printf() use entirely.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-id: 20240822162323.706382-1-peter.maydell@linaro.org