-----Original Message-----
From: Cédric Le Goater <clg@redhat.com>
Sent: Thursday, March 14, 2024 5:06 AM
To: qemu-devel@nongnu.org
Cc: Alex Williamson <alex.williamson@redhat.com>; Cédric Le Goater
<clg@redhat.com>; Eric Auger <eric.auger@redhat.com>; Liu, Yi L
<yi.l.liu@intel.com>; Duan, Zhenzhong <zhenzhong.duan@intel.com>
Subject: [PATCH] vfio/iommufd: Fix memory leak
Make sure variable contents is freed if scanf fails.
Cc: Eric Auger <eric.auger@redhat.com>
Cc: Yi Liu <yi.l.liu@intel.com>
Cc: Zhenzhong Duan <zhenzhong.duan@intel.com>
Fixes: CID 1540007
Fixes: 5ee3dc7af785 ("vfio/iommufd: Implement the iommufd backend")
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Unrelated to this patch, I see there are four g_free calls, not clear if it's
deserved
to cleanup with g_autofree.