pci: memory leak of PCIDevice::rom_file
commitbe7052c2a8f667f1dc42b06afcebb964ee0b03ff
authorIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 24 Jan 2011 10:00:47 +0000 (24 19:00 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 24 Jan 2011 13:40:37 +0000 (24 15:40 +0200)
tree3b1ec2077adf7c20ff0e3631c2af703f87585451
parente10990c3f0c39e92ab5f74004b89a24fcc36fa14
pci: memory leak of PCIDevice::rom_file

PCIDevice::rom_file is leaked.
PCIDevice::rom_file is allocated in pci_qdev_init(), but not freed anywhere.
free it in qemu_unregister_device().

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci.c