Peng Liang f3bc3a73c9 vfio: Fix memory leak of hostwin
hostwin is allocated and added to hostwin_list in vfio_host_win_add, but
it is only deleted from hostwin_list in vfio_host_win_del, which causes
a memory leak.  Also, freeing all elements in hostwin_list is missing in
vfio_disconnect_container.

Fix: 2e4109de8e58 ("vfio/spapr: Create DMA window dynamically (SPAPR IOMMU v2)")
CC: qemu-stable@nongnu.org
Signed-off-by: Peng Liang <liangpeng10@huawei.com>
Link: https://lore.kernel.org/r/20211117014739.1839263-1-liangpeng10@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2021-11-17 11:25:55 -07:00
..
2021-10-27 14:45:22 +02:00
2021-10-12 08:20:08 +02:00
2021-11-09 10:11:27 +01:00
2021-10-12 08:20:08 +02:00
2021-11-15 21:56:15 +01:00
2021-11-09 13:16:56 +01:00
2021-10-18 00:41:36 +02:00
2021-11-09 10:11:27 +01:00
2021-11-15 11:10:11 -05:00
2021-11-02 14:14:55 -04:00
2021-11-17 11:25:55 -07:00