[Xen-devel] [PATCH 22/32] hw/ide: fix memory leak from qemu_allocate_irqs()

2015-04-22 Thread Andrew Cooper
From: Kaifeng Zhu qemu_allocate_irqs would return an array of irqs, not store the allocated array pointer, and subsequently leak it. Signed-off-by: Kaifeng Zhu (defects not identified by Coverity Scan) Reviewed-by: Andrew Cooper --- hw/ide.c |2 +- hw/irq.c | 18 +- hw/i

[Xen-devel] [PATCH 22/32] hw/ide: fix memory leak from qemu_allocate_irqs()

2015-04-22 Thread Andrew Cooper
From: Kaifeng Zhu qemu_allocate_irqs would return an array of irqs, not store the allocated array pointer, and subsequently leak it. Signed-off-by: Kaifeng Zhu (defects not identified by Coverity Scan) Reviewed-by: Andrew Cooper --- hw/ide.c |2 +- hw/irq.c | 18 +- hw/i