| commit | 81987bd58b558be71dc4d8adf163f8c787a1c3e9 | [log] [tgz] |
|---|---|---|
| author | Zhenzhong Duan <zhenzhong.duan@intel.com> | Tue May 07 14:42:42 2024 +0800 |
| committer | Cédric Le Goater <clg@redhat.com> | Thu May 16 16:59:20 2024 +0200 |
| tree | cd87bf9d892a49a0aefd6725dbcf9c03689b33c4 | |
| parent | 11ebce2a5544cacab31e8ff169c6f0ceef37f4e8 [diff] |
vfio/pci: Use g_autofree in vfio_realize Local pointer name is allocated before vfio_attach_device() call and freed after the call. Same for tmp when calling realpath(). 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>