]> Git Repo - qemu.git/commitdiff
hw/acpi/aml-build: Fix memory leak
authorShannon Zhao <[email protected]>
Mon, 25 May 2015 07:14:37 +0000 (15:14 +0800)
committerMichael S. Tsirkin <[email protected]>
Mon, 1 Jun 2015 12:18:54 +0000 (14:18 +0200)
Signed-off-by: Shannon Zhao <[email protected]>
Signed-off-by: Shannon Zhao <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Igor Mammedov <[email protected]>
hw/acpi/aml-build.c

index f26466aeddc07d8eaa1a110c7bca13673dde3a6a..2bebf23db2754691b6a905e373f0816450a7741e 100644 (file)
@@ -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)
This page took 0.022563 seconds and 4 git commands to generate.