Searched hist:57001144 (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/hw/vfio/ |
H A D | iommufd.c | 57001144 Thu Mar 14 03:22:38 CDT 2024 Cédric Le Goater <clg@redhat.com> vfio/iommufd: Fix memory leak
Coverity reported a memory leak on variable 'contents' in routine iommufd_cdev_getfd(). Use g_autofree variables to simplify the exit path and get rid of g_free() calls.
Cc: Eric Auger <eric.auger@redhat.com> Cc: Yi Liu <yi.l.liu@intel.com> Fixes: CID 1540007 Fixes: 5ee3dc7af785 ("vfio/iommufd: Implement the iommufd backend") Suggested-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
|