aboutsummaryrefslogtreecommitdiff
path: root/hw/acpi
diff options
context:
space:
mode:
authorShannon Zhao <shannon.zhao@linaro.org>2015-05-25 15:14:37 +0800
committerMichael S. Tsirkin <mst@redhat.com>2015-06-01 14:18:54 +0200
commitafcf905cff7971324c2706600ead35a1f41f417a (patch)
treecb555cdcabefb02a4c60ee199b124b08649ae7bf /hw/acpi
parent68e6b0af784dda4efd9d4e2e9d3b03a31ca1408c (diff)
downloadqemu-afcf905cff7971324c2706600ead35a1f41f417a.zip
qemu-afcf905cff7971324c2706600ead35a1f41f417a.tar.gz
qemu-afcf905cff7971324c2706600ead35a1f41f417a.tar.bz2
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>
Diffstat (limited to 'hw/acpi')
-rw-r--r--hw/acpi/aml-build.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
index f26466a..2bebf23 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)