commit | f3758413b77d396dd4db68643f7068fb49ec77d9 | [log] [tgz] |
---|---|---|
author | Zhenzhong Duan <zhenzhong.duan@intel.com> | Tue May 07 14:42:43 2024 +0800 |
committer | Cédric Le Goater <clg@redhat.com> | Thu May 16 16:59:20 2024 +0200 |
tree | cf1630fbaec0547214bc7fa0403bd4d8230b8ccc | |
parent | 81987bd58b558be71dc4d8adf163f8c787a1c3e9 [diff] |
vfio/pci: Use g_autofree in iommufd_cdev_get_info_iova_range() Local pointer info is freed before return from iommufd_cdev_get_info_iova_range(). Use 'g_autofree' to avoid the g_free() calls. 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>