mirror of
https://github.com/mii443/qemu.git
synced 2025-08-23 15:48:20 +00:00
The isa_register_portio_list() function allocates ioports
data/state. Let's keep the reference to this data on some owner. This
isn't enough to fix leaks, but at least, ASAN stops complaining of
direct leaks. Further cleanup would require calling
portio_list_del/destroy().
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit e305a16510
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>