[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/14] hw/isa/vt82c686: Free irqs
From: |
Akihiko Odaki |
Subject: |
[PATCH 03/14] hw/isa/vt82c686: Free irqs |
Date: |
Wed, 26 Jun 2024 20:06:26 +0900 |
This suppresses LeakSanitizer warnings.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
hw/isa/vt82c686.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c
index 8582ac0322eb..189b487f1d22 100644
--- a/hw/isa/vt82c686.c
+++ b/hw/isa/vt82c686.c
@@ -721,7 +721,6 @@ static void via_isa_realize(PCIDevice *d, Error **errp)
qdev_init_gpio_out(dev, &s->cpu_intr, 1);
qdev_init_gpio_in_named(dev, via_isa_pirq, "pirq", PCI_NUM_PINS);
- isa_irq = qemu_allocate_irqs(via_isa_request_i8259_irq, s, 1);
isa_bus = isa_bus_new(dev, pci_address_space(d), pci_address_space_io(d),
errp);
@@ -729,7 +728,9 @@ static void via_isa_realize(PCIDevice *d, Error **errp)
return;
}
+ isa_irq = qemu_allocate_irqs(via_isa_request_i8259_irq, s, 1);
s->isa_irqs_in = i8259_init(isa_bus, *isa_irq);
+ qemu_free_irqs(isa_irq, 1);
isa_bus_register_input_irqs(isa_bus, s->isa_irqs_in);
i8254_pit_init(isa_bus, 0x40, 0, NULL);
i8257_dma_init(OBJECT(d), isa_bus, 0);
--
2.45.2
[PATCH 06/14] hw/virtio: Free vqs before vhost_dev_cleanup(), Akihiko Odaki, 2024/06/26