hw/vfio/ap: Plug memleak in vfio_ap_get_group()
commit0216b18b79c432585b9cc49532c6223d766d552f
authorPan Nengyuan <pannengyuan@huawei.com>
Fri, 14 Aug 2020 16:02:31 +0000 (14 12:02 -0400)
committerCornelia Huck <cohuck@redhat.com>
Thu, 27 Aug 2020 10:37:03 +0000 (27 12:37 +0200)
tree5a9fdeb33f884510a0a8463b4d5a185629436ae3
parent70c04a7ca256894aa6442b536f3fd21f14277605
hw/vfio/ap: Plug memleak in vfio_ap_get_group()

Missing g_error_free() in vfio_ap_get_group() error path. Fix that.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Message-Id: <20200814160241.7915-3-pannengyuan@huawei.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/vfio/ap.c