Re: [PATCH 14/16] vfio/pci: Use g_autofree for vfio_region_info pointer

2024-05-21 Thread Cédric Le Goater
On 5/15/24 10:20, Zhenzhong Duan wrote: Pointer opregion is freed after vfio_pci_igd_opregion_init(). Use 'g_autofree' to avoid the g_free() calls. Signed-off-by: Zhenzhong Duan Reviewed-by: Cédric Le Goater Thanks, C. --- hw/vfio/pci.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 14/16] vfio/pci: Use g_autofree for vfio_region_info pointer

2024-05-15 Thread Zhenzhong Duan
Pointer opregion is freed after vfio_pci_igd_opregion_init(). Use 'g_autofree' to avoid the g_free() calls. Signed-off-by: Zhenzhong Duan --- hw/vfio/pci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index ecfbb9619f..be87478716 100644 ---