Re: [PATCH] hw/m68k/mcf5206: Don't leak IRQs in mcf5206_mbar_realize()

2020-11-21 Thread Thomas Huth
Am Fri, 20 Nov 2020 17:23:14 + schrieb Peter Maydell : > 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 a

Re: [PATCH] hw/m68k/mcf5206: Don't leak IRQs in mcf5206_mbar_realize()

2020-11-20 Thread Philippe Mathieu-Daudé
On 11/20/20 6:23 PM, Peter Maydell wrote: > 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

[PATCH] hw/m68k/mcf5206: Don't leak IRQs in mcf5206_mbar_realize()

2020-11-20 Thread Peter Maydell
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 fr