Patchwork [1/8] Fix qemu_free use in acpi.c

login
register
mail settings
Submitter Jean-Christophe DUBOIS
Date Nov. 15, 2009, 6:18 p.m.
Message ID <1258309100-29591-1-git-send-email-jcd@tribudubois.net>
Download mbox | patch
Permalink /patch/38461/
State New
Headers show

Comments

Jean-Christophe DUBOIS - Nov. 15, 2009, 6:18 p.m.
acpi.c is using free() instead of qemu_free().
Fix it.

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
---
 hw/acpi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/acpi.c b/hw/acpi.c
index dcc2c86..9a69e7d 100644
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -920,7 +920,7 @@  int acpi_table_add(const char *t)
     return 0;
 out:
     if (acpi_tables) {
-        free(acpi_tables);
+        qemu_free(acpi_tables);
         acpi_tables = NULL;
     }
     return -1;