From patchwork Fri Jul 9 01:52:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: pci: fix pci_unregister_secondary_bus(). Date: Thu, 08 Jul 2010 15:52:18 -0000 From: Isaku Yamahata X-Patchwork-Id: 58321 Message-Id: To: qemu-devel@nongnu.org Cc: yamahata@valinux.co.jp, mst@redhat.com Fix leak in pci_unregister_secondary_bus(). call qbus_free(). Signed-off-by: Isaku Yamahata --- hw/pci.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index a7ff566..25634ed 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -298,6 +298,7 @@ static void pci_unregister_secondary_bus(PCIBus *bus) { assert(QLIST_EMPTY(&bus->child)); QLIST_REMOVE(bus, sibling); + qbus_free(&bus->qbus); } int pci_bus_num(PCIBus *s)