]> xenbits.xensource.com Git - qemu-xen.git/commit
pc_sysfw: Plug memory leak on pc_fw_add_pflash_drv() error path
authorMarkus Armbruster <armbru@redhat.com>
Fri, 23 Nov 2012 18:12:18 +0000 (19:12 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 7 Dec 2012 11:34:12 +0000 (12:34 +0100)
commit654598c944aa31cdbea435bd468055af9c918d16
tree2480f5186b94f47d1e26f9376964b4ed18806af4
parent3528a3cba1f59de520fad7b1c843759e8655ea2c
pc_sysfw: Plug memory leak on pc_fw_add_pflash_drv() error path

Harmless, because we the error inevitably leads to another, fatal one
in pc_system_flash_init(): PC system firmware (pflash) not available.
Fix it anyway.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/pc_sysfw.c