summaryrefslogtreecommitdiffstats
path: root/hw/i386/intel_iommu.c
diff options
context:
space:
mode:
authorPeter Maydell2020-11-20 18:23:14 +0100
committerThomas Huth2020-12-09 08:04:34 +0100
commitb0bed2c916286326b248da05b2ca5f6d152aba44 (patch)
tree856eb074200d9d1bc129a6efefaf5f947b4dd8c7 /hw/i386/intel_iommu.c
parentgitlab-ci: Move coroutine tests across to gitlab (diff)
downloadqemu-b0bed2c916286326b248da05b2ca5f6d152aba44.tar.gz
qemu-b0bed2c916286326b248da05b2ca5f6d152aba44.tar.xz
qemu-b0bed2c916286326b248da05b2ca5f6d152aba44.zip
hw/m68k/mcf5206: Don't leak IRQs in mcf5206_mbar_realize()
Coverity points out that the realize function for the TYPE_MCF5206_MBAR device leaks the IRQ array it allocates with qemu_allocate_irqs(). Keep a pointer to it in the device state struct to avoid the leak. (Since it needs to stay around for the life of the simulation there is no need to actually free it, and the leak was harmless.) Fixes: Coverity CID 1432412 Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Thomas Huth <huth@tuxfamily.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20201120172314.14725-1-peter.maydell@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/i386/intel_iommu.c')
0 files changed, 0 insertions, 0 deletions