Received: from eggs.gnu.org ([2001:4830:134:3::10]:43214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um8tf-00014R-HH for qemu-devel@nongnu.org; Mon, 10 Jun 2013 16:41:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Um8td-0005as-Nh for qemu-devel@nongnu.org; Mon, 10 Jun 2013 16:40:59 -0400 From: Stefan Weil Date: Mon, 10 Jun 2013 22:40:52 +0200 Message-Id: <1370896852-12473-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] target-sparc: Replace free by g_free List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-trivial Cc: Blue Swirl , Stefan Weil , qemu-devel The wrong function was reported by cppcheck. Signed-off-by: Stefan Weil --- 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 290b580..13bb7bb 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; } -- 1.7.10.4