From afcf905cff7971324c2706600ead35a1f41f417a Mon Sep 17 00:00:00 2001 From: Shannon Zhao Date: Mon, 25 May 2015 15:14:37 +0800 Subject: hw/acpi/aml-build: Fix memory leak Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov --- hw/acpi/aml-build.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw') diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index f26466aedd..2bebf23db2 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -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) -- cgit v1.2.3