[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH] target_sparc: Fix use of free() instead of g_free
From: |
Stefan Weil |
Subject: |
[Qemu-trivial] [PATCH] target_sparc: Fix use of free() instead of g_free() |
Date: |
Sun, 16 Oct 2011 20:10:46 +0200 |
This error was reported by cppcheck.
Signed-off-by: Stefan Weil <address@hidden>
---
target-sparc/helper.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/target-sparc/helper.c b/target-sparc/helper.c
index c80531a..ca9bf6b 100644
--- a/target-sparc/helper.c
+++ b/target-sparc/helper.c
@@ -1200,8 +1200,8 @@ static int cpu_sparc_register(CPUSPARCState *env, const
char *cpu_model)
static void cpu_sparc_close(CPUSPARCState *env)
{
- free(env->def);
- free(env);
+ g_free(env->def);
+ g_free(env);
}
CPUSPARCState *cpu_sparc_init(const char *cpu_model)
--
1.7.2.5
- [Qemu-trivial] [PATCH] target_sparc: Fix use of free() instead of g_free(),
Stefan Weil <=