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>
This commit is contained in:
parent
68e6b0af78
commit
afcf905cff
@ -296,6 +296,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
Block a user