diff options
author | Shannon Zhao <shannon.zhao@linaro.org> | 2015-05-25 15:14:37 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-06-01 14:18:54 +0200 |
commit | afcf905cff7971324c2706600ead35a1f41f417a (patch) | |
tree | cb555cdcabefb02a4c60ee199b124b08649ae7bf /hw | |
parent | 68e6b0af784dda4efd9d4e2e9d3b03a31ca1408c (diff) |
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')
-rw-r--r-- | hw/acpi/aml-build.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |