diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2018-12-14 13:30:54 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-12-14 13:30:54 +0000 |
commit | 7081e9b6b2d695c4367e6b9ed3e852bcb6f42907 (patch) | |
tree | 5b2e9e19b1a6178c1c8a86d10a872f0026fdbfb6 /hw/arm/mps2-tz.c | |
parent | ac87e5072e2cbfcf8e80caac7ef43ceb6914c7af (diff) | |
download | qemu-7081e9b6b2d695c4367e6b9ed3e852bcb6f42907.zip |
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/mps2-tz.c')
-rw-r--r-- | hw/arm/mps2-tz.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/arm/mps2-tz.c b/hw/arm/mps2-tz.c index 6dd02ae47e..82b1d020a5 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); } |