diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-01-22 13:02:44 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-02-20 18:23:00 +0100 |
commit | 386bbf45720b00496d5b9f9137359801c4e7ac0e (patch) | |
tree | 7a107f06c9d6c20e241252c5ad8aebe2feb6dca2 /hw/pci.c | |
parent | 3299369856db73a02c68869cb03fd1e24238eb9b (diff) | |
download | qemu-386bbf45720b00496d5b9f9137359801c4e7ac0e.tar.gz qemu-386bbf45720b00496d5b9f9137359801c4e7ac0e.tar.bz2 qemu-386bbf45720b00496d5b9f9137359801c4e7ac0e.zip |
pci: Fix memory leak
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/pci.c')
-rw-r--r-- | hw/pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)) { |