hw/acpi/aml-build: Fix memory leak
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
(cherry picked from commit afcf905cff
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
b48a391cff
commit
bb3a1da4d4
|
@ -304,6 +304,7 @@ static void aml_free(gpointer data, gpointer user_data)
|
|||
{
|
||||
Aml *var = data;
|
||||
build_free_array(var->buf);
|
||||
g_free(var);
|
||||
}
|
||||
|
||||
Aml *init_aml_allocator(void)
|
||||
|
|
Loading…
Reference in New Issue