aboutsummaryrefslogtreecommitdiff
path: root/hw/arm
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-12-14 13:30:54 +0000
committerPeter Maydell <peter.maydell@linaro.org>2018-12-14 13:30:54 +0000
commit7081e9b6b2d695c4367e6b9ed3e852bcb6f42907 (patch)
tree5b2e9e19b1a6178c1c8a86d10a872f0026fdbfb6 /hw/arm
parentac87e5072e2cbfcf8e80caac7ef43ceb6914c7af (diff)
downloadqemu-7081e9b6b2d695c4367e6b9ed3e852bcb6f42907.zip
qemu-7081e9b6b2d695c4367e6b9ed3e852bcb6f42907.tar.gz
qemu-7081e9b6b2d695c4367e6b9ed3e852bcb6f42907.tar.bz2
hw/arm/mps2-tz.c: Free mscname string in make_dma()
The clang leak sanitizer spots a (one-off, trivial) memory leak in make_dma() due to a missing free. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20181204132952.2601-3-peter.maydell@linaro.org
Diffstat (limited to 'hw/arm')
-rw-r--r--hw/arm/mps2-tz.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/arm/mps2-tz.c b/hw/arm/mps2-tz.c
index 6dd02ae..82b1d02 100644
--- a/hw/arm/mps2-tz.c
+++ b/hw/arm/mps2-tz.c
@@ -322,6 +322,7 @@ static MemoryRegion *make_dma(MPS2TZMachineState *mms, void *opaque,
sysbus_connect_irq(s, 2, qdev_get_gpio_in_named(iotkitdev,
"EXP_IRQ", 57 + i * 3));
+ g_free(mscname);
return sysbus_mmio_get_region(s, 0);
}