Fix free on wrong variable
Credit goes to "cppcheck" again ;)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30353 a1c6a512-1295-4272-9138-f99709370657
diff --git a/utils/rk27utils/rk27load/stage3_upload.c b/utils/rk27utils/rk27load/stage3_upload.c
index 6f10a7c..d86dece 100644
--- a/utils/rk27utils/rk27load/stage3_upload.c
+++ b/utils/rk27utils/rk27load/stage3_upload.c
@@ -45,7 +45,7 @@
{
fprintf(stderr, "\n[error]: I/O error\n");
fclose(f);
- free(f);
+ free(code);
return -33;
}
fprintf(stderr, "done\n");