Re: [PATCH v2 17/20] vfio: Use g_autofree in all call site of vfio_get_region_info()

2024-05-22 Thread Cédric Le Goater
On 5/22/24 06:40, Zhenzhong Duan wrote: There are some exceptions when pointer to vfio_region_info is reused. In that case, the pointed memory is freed manually. Suggested-by: Cédric Le Goater Signed-off-by: Zhenzhong Duan Reviewed-by: Cédric Le Goater Thanks, C. ---

[PATCH v2 17/20] vfio: Use g_autofree in all call site of vfio_get_region_info()

2024-05-21 Thread Zhenzhong Duan
There are some exceptions when pointer to vfio_region_info is reused. In that case, the pointed memory is freed manually. Suggested-by: Cédric Le Goater Signed-off-by: Zhenzhong Duan --- hw/vfio/helpers.c | 7 ++- hw/vfio/igd.c | 5 ++--- hw/vfio/pci.c | 13 +++-- 3 files