aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci.c b/hw/pci.c
index 5e6e216487..8b76cea914 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)) {