commit | 0d3e89bea8ff2fb74b829d80a8e3ebe05b80614a | [log] [tgz] |
---|---|---|
author | Zhenzhong Duan <zhenzhong.duan@intel.com> | Wed May 22 12:40:12 2024 +0800 |
committer | Cédric Le Goater <clg@redhat.com> | Wed May 22 10:04:22 2024 +0200 |
tree | 297033440f424cf363d1c29b28daa36fe7135d5e | |
parent | 0a0bda0acd529161d5cbed6c603ab89674a9af8c [diff] |
vfio: Use g_autofree in all call site of vfio_get_region_info() 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 <clg@redhat.com> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>