vfio/igd: Use g_autofree in vfio_probe_igd_bar4_quirk()
commitb4e1670c494165d4186930d56f692857f4fec89b
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Wed, 22 May 2024 04:40:13 +0000 (22 12:40 +0800)
committerCédric Le Goater <clg@redhat.com>
Wed, 22 May 2024 08:04:22 +0000 (22 10:04 +0200)
tree8618218a98b12299f90f48c9819133369fc4728c
parent0d3e89bea8ff2fb74b829d80a8e3ebe05b80614a
vfio/igd: Use g_autofree in vfio_probe_igd_bar4_quirk()

Pointer opregion, host and lpc are allocated and freed in
vfio_probe_igd_bar4_quirk(). Use g_autofree to automatically
free them.

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>
hw/vfio/igd.c