diff options
author | Stefan Weil <sw@weilnetz.de> | 2013-06-10 22:40:52 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2013-06-11 23:45:44 +0400 |
commit | 1e2a1d41f29adc8ae3013612c5a0114a87773773 (patch) | |
tree | 664546a2a4fcdaa5496fa522adda52e672199681 /target-sparc | |
parent | dcb0780990f7d579b2d6f9c67ef841a75b3a758b (diff) |
target-sparc: Replace free by g_free
The wrong function was reported by cppcheck.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'target-sparc')
-rw-r--r-- | target-sparc/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |