summary refs log tree commit diff stats
path: root/hw/intc/m68k_irqc.c
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2021-11-05 17:52:54 +0100
committerLaurent Vivier <laurent@vivier.eu>2021-11-09 16:42:49 +0100
commit5db83c7e90ec6c0b28995b537bb03942edcd4164 (patch)
tree1609f3760d6c37a5caa6db94844e91c9f818ccaa /hw/intc/m68k_irqc.c
parent2b22e7540d6ab4efe82d442363e3fc900cea6584 (diff)
downloadfocaccia-qemu-5db83c7e90ec6c0b28995b537bb03942edcd4164.tar.gz
focaccia-qemu-5db83c7e90ec6c0b28995b537bb03942edcd4164.zip
macfb: fix a memory leak (CID 1465231)
Rewrite the function using g_string_append_printf() rather than
g_strdup_printf()/g_strconcat().

Fixes: df8abbbadf74 ("macfb: add common monitor modes supported by the MacOS toolbox ROM")
Cc: mark.cave-ayland@ilande.co.uk
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20211105165254.3544369-1-laurent@vivier.eu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/intc/m68k_irqc.c')
0 files changed, 0 insertions, 0 deletions