From: Stefan Weil Date: Sat, 22 Jan 2011 12:02:44 +0000 (+0100) Subject: pci: Fix memory leak X-Git-Tag: v0.15.0-rc0~869 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=386bbf45720b00496d5b9f9137359801c4e7ac0e;p=thirdparty%2Fqemu.git pci: Fix memory leak Signed-off-by: Stefan Weil Signed-off-by: Aurelien Jarno --- diff --git a/hw/pci.c b/hw/pci.c index 5e6e216487c..8b76cea9148 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -1875,6 +1875,7 @@ static int pci_add_option_rom(PCIDevice *pdev, bool is_default_rom) if (size < 0) { error_report("%s: failed to find romfile \"%s\"", __FUNCTION__, pdev->romfile); + qemu_free(path); return -1; } if (size & (size - 1)) {