Jonathan Cameron a99fbb003b hw/cxl: Fix memory leak in error paths
Use g_autofree to free the CXLFixedWindow structure if an
error occurs in configuration before we have added to
the list (via g_steal_pointer())

Fix Coverity CID: 1488872

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20220808122051.14822-2-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2022-08-17 13:08:11 -04:00
..
2022-06-28 11:06:44 +02:00
2022-08-01 11:58:02 +02:00
2022-08-01 11:58:02 +02:00
2022-06-30 04:49:40 +05:30
2022-04-26 12:25:14 +02:00
2022-07-22 19:01:44 +02:00
2022-08-01 11:58:02 +02:00
2022-06-11 11:44:50 +02:00
2022-06-30 09:21:13 +02:00
2022-06-08 19:38:47 +01:00
2022-07-06 10:22:38 -03:00