From 1e2a1d41f29adc8ae3013612c5a0114a87773773 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 10 Jun 2013 22:40:52 +0200 Subject: [PATCH] target-sparc: Replace free by g_free MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The wrong function was reported by cppcheck. Signed-off-by: Stefan Weil Reviewed-by: Andreas Färber Signed-off-by: Michael Tokarev --- target-sparc/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-sparc/cpu.c b/target-sparc/cpu.c index 290b5809aa..13bb7bb94a 100644 --- a/target-sparc/cpu.c +++ b/target-sparc/cpu.c @@ -614,7 +614,7 @@ static int cpu_sparc_find_by_name(sparc_def_t *cpu_def, const char *cpu_model) return 0; error: - free(s); + g_free(s); return -1; }