portio: keep references on portio
commite305a16510afa74eec20390479e349402e55ef4c
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 13 Jul 2016 00:11:59 +0000 (13 02:11 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 8 Sep 2016 14:05:21 +0000 (8 18:05 +0400)
treea7b169b1ea91349fb47db68c74e66d635a11e518
parentbd794065ffffe10721b6a95f1db52f2cc7953196
portio: keep references on portio

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>
hw/audio/gus.c
hw/audio/sb16.c
hw/block/fdc.c
hw/char/parallel.c
hw/display/vga-isa.c
hw/dma/i8257.c
hw/ide/core.c
hw/isa/isa-bus.c
include/hw/ide/internal.h
include/hw/isa/i8257.h
include/hw/isa/isa.h