diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c index f53bb9c5d09c5497f5097d6e8727dc130a0e612f..c133c33e7ac7589307ed67cc1b7effdd7e6f011e 100644 --- a/hw/char/serial-pci.c +++ b/hw/char/serial-pci.c @@ -148,6 +148,7 @@ static void multi_serial_pci_exit(PCIDevice *dev) for (i = 0; i < pci->ports; i++) { s = pci->state + i; serial_exit_core(s); + memory_region_del_subregion(&pci->iobar, &s->io); memory_region_destroy(&s->io); g_free(pci->name[i]); }