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
This commit is contained in:
Peter Maydell 2018-12-14 13:30:54 +00:00
parent ac87e5072e
commit 7081e9b6b2

View File

@ -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);
}