Commit 386bbf45 authored by Stefan Weil's avatar Stefan Weil Committed by Aurelien Jarno
Browse files

pci: Fix memory leak


Signed-off-by: default avatarStefan Weil <weil@mail.berlios.de>
Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 32993698
......@@ -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)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment