]> Git Repo - qemu.git/commit - hw/ide/microdrive.c
hw: Fix qemu_allocate_irqs() leaks
authorAndreas Färber <[email protected]>
Wed, 18 Jun 2014 07:55:18 +0000 (00:55 -0700)
committerAndreas Färber <[email protected]>
Mon, 30 Jun 2014 19:13:30 +0000 (21:13 +0200)
commitf3c7d0389fe8a2792fd4c1cf151b885de03c8f62
tree17a37a957d51c956c3c9e98b8e4cdd6ac1adf3dd
parent127a4e1a51c038ec9167083b65d376dddcc64530
hw: Fix qemu_allocate_irqs() leaks

Replace qemu_allocate_irqs(foo, bar, 1)[0]
with qemu_allocate_irq(foo, bar, 0).

This avoids leaking the dereferenced qemu_irq *.

Cc: Markus Armbruster <[email protected]>
Reviewed-by: Peter Crosthwaite <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
[PC Changes:
 * Applied change to instance in sh4/sh7750.c
]
Signed-off-by: Peter Crosthwaite <[email protected]>
Reviewed-by: Kirill Batuzov <[email protected]>
[AF: Fix IRQ index in sh4/sh7750.c]
Cc: [email protected]
Signed-off-by: Andreas Färber <[email protected]>
14 files changed:
hw/arm/omap1.c
hw/arm/omap2.c
hw/arm/pxa2xx.c
hw/arm/spitz.c
hw/arm/z2.c
hw/core/irq.c
hw/dma/omap_dma.c
hw/ide/microdrive.c
hw/misc/cbus.c
hw/pcmcia/pxa2xx.c
hw/sd/omap_mmc.c
hw/sd/sdhci.c
hw/sh4/sh7750.c
hw/timer/omap_gptimer.c
This page took 0.02899 seconds and 4 git commands to generate.