hw/ppc: use g_free() in spapr_tce_table_post_load()
commit44adcaacc877821729ab6d17ea826e1d6ce4bad6
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 28 Jul 2023 19:56:45 +0000 (28 16:56 -0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 8 Sep 2023 10:08:52 +0000 (8 13:08 +0300)
tree79954123b49e7121d72b10545cced1d69ad6a5e4
parentded625e7aa6a7f3173a22657f7dc0e9ab3d8fa3b
hw/ppc: use g_free() in spapr_tce_table_post_load()

tcet->mig_table is copied from tcet->table, which in turn is created
in spapr_tce_alloc_table() using g_new0().

Use g_free() instead of free() to deallocate it.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
[Mjt: fix commit comments]
hw/ppc/spapr_iommu.c