projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e7d1c5
)
pci: Fix memory leak
author
Stefan Weil
<weil@mail.berlios.de>
Sat, 22 Jan 2011 12:02:44 +0000
(13:02 +0100)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Sun, 20 Feb 2011 17:23:00 +0000
(18:23 +0100)
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/pci.c
patch
|
blob
|
history
diff --git
a/hw/pci.c
b/hw/pci.c
index
5e6e216
..
8b76cea
100644
(file)
--- 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)) {