]> git.ipfire.org Git - thirdparty/qemu.git/commit
portio: keep references on portio
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 13 Jul 2016 00:11:59 +0000 (02:11 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 21 Dec 2016 16:08:19 +0000 (10:08 -0600)
commit7d17d68971903467c5d5edd035f6ee18a8b11742
treef424d2035493e1d931a0631e9bf76c55f5f76b48
parent345f1cd9f6e4f156c7af0098b3d220305037f227
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>
(cherry picked from commit e305a16510afa74eec20390479e349402e55ef4c)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.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