mirror of https://gitee.com/openkylin/qemu.git
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>
This commit is contained in:
parent
e10990c3f0
commit
be7052c2a8
Loading…
Reference in New Issue