This error was reported by cppcheck. Signed-off-by: Stefan Weil <s...@weilnetz.de> --- 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