diff options
author | Cédric Le Goater <clg@redhat.com> | 2024-03-14 09:22:38 +0100 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2024-03-19 11:56:37 +0100 |
commit | 57001144628db65ef9b7dbbfb759101212696d6a (patch) | |
tree | e57d75b4a119da6e7903d39aa752f5bb6b8b6fa8 /hw/remote/proxy.c | |
parent | 4511400fb78e72d4d9916ed60e04f4e99e594f65 (diff) | |
download | qemu-57001144628db65ef9b7dbbfb759101212696d6a.zip qemu-57001144628db65ef9b7dbbfb759101212696d6a.tar.gz qemu-57001144628db65ef9b7dbbfb759101212696d6a.tar.bz2 |
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>
Diffstat (limited to 'hw/remote/proxy.c')
0 files changed, 0 insertions, 0 deletions