]> xenbits.xensource.com Git - people/andrewcoop/qemu-traditional.git/commit
ide: don't leak irq array in pci_cmd646_ide_init()
authorYunlei Ding <yunlei.ding@citrix.com>
Fri, 18 Apr 2014 05:11:30 +0000 (06:11 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 16 Oct 2015 15:52:07 +0000 (16:52 +0100)
commita979f2dcfab505ca77e5fd5f644bb0a705bae724
treeb8d6ad1d2ff6af6b9a8a760b19b3e1abf4a72c16
parent9da9f80538c8ff891886cfe3d987ca17bd240d19
ide: don't leak irq array in pci_cmd646_ide_init()

Call qemu_allocate_irq() twice instead of qemu_allocate_irqs to
allocate memory.

Signed-off-by: Yunlei Ding <yunlei.ding@citrix.com>
(defects not identified by Coverity Scan)
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
hw/ide.c