]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/acpi/aml-build: Fix memory leak
authorShannon Zhao <shannon.zhao@linaro.org>
Mon, 25 May 2015 07:14:37 +0000 (15:14 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 29 Jul 2015 23:21:41 +0000 (18:21 -0500)
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 afcf905cff7971324c2706600ead35a1f41f417a)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/acpi/aml-build.c

index d7945f6e2dae26edd7968ad5e3a713afe3214ce6..41ff6a32c7eb694964a3b0986e165876c051bf86 100644 (file)
@@ -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)