diff options
author | Igor Mammedov <imammedo@redhat.com> | 2016-05-19 15:19:27 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-06-07 15:39:27 +0300 |
commit | 8cc87c3179f3988cf870ae4e637123770bdf82f1 (patch) | |
tree | b32a80ded84355d4921b1326c4d3a55ef5e4a3a7 /hw/acpi/aml-build.c | |
parent | ad9671b8700ac491564d964f79ee9d1f106756ae (diff) | |
download | qemu-8cc87c3179f3988cf870ae4e637123770bdf82f1.zip qemu-8cc87c3179f3988cf870ae4e637123770bdf82f1.tar.gz qemu-8cc87c3179f3988cf870ae4e637123770bdf82f1.tar.bz2 |
acpi: cleanup bios_linker_loader_cleanup()
bios_linker_loader_cleanup() is called only from one place
and returned value is immediately freed wich makes returning
pointer from bios_linker_loader_cleanup() useless.
Cleanup bios_linker_loader_cleanup() by freeing
data there so that caller won't have to free it.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/acpi/aml-build.c')
-rw-r--r-- | hw/acpi/aml-build.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index bff2599..66e9bf8 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -1548,8 +1548,7 @@ void acpi_build_tables_init(AcpiBuildTables *tables) void acpi_build_tables_cleanup(AcpiBuildTables *tables, bool mfre) { - void *linker_data = bios_linker_loader_cleanup(tables->linker); - g_free(linker_data); + bios_linker_loader_cleanup(tables->linker); g_array_free(tables->rsdp, true); g_array_free(tables->table_data, true); g_array_free(tables->tcpalog, mfre); |