hw: Fix qemu_allocate_irqs() leaks