summaryrefslogtreecommitdiffstats
path: root/utils/rk27utils/rk27load
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-08-25 20:40:28 +0000
committerThomas Jarosch <tomj@simonv.com>2011-08-25 20:40:28 +0000
commite0024c9a7138ce758524b2d0c03731f379a1b002 (patch)
tree99ae815c6d8eb3dd872fe50b20107ee73146fcf3 /utils/rk27utils/rk27load
parent51ae2e6ffcb6e0f5fbecb1ec6af207be70d5701a (diff)
downloadrockbox-e0024c9a7138ce758524b2d0c03731f379a1b002.tar.gz
rockbox-e0024c9a7138ce758524b2d0c03731f379a1b002.tar.bz2
rockbox-e0024c9a7138ce758524b2d0c03731f379a1b002.zip
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
Diffstat (limited to 'utils/rk27utils/rk27load')
-rw-r--r--utils/rk27utils/rk27load/stage3_upload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/rk27utils/rk27load/stage3_upload.c b/utils/rk27utils/rk27load/stage3_upload.c
index 6f10a7c995..d86deceb81 100644
--- a/utils/rk27utils/rk27load/stage3_upload.c
+++ b/utils/rk27utils/rk27load/stage3_upload.c
@@ -45,7 +45,7 @@ int upload_stage3_code(libusb_device_handle *hdev, char *fn_stage3)
{
fprintf(stderr, "\n[error]: I/O error\n");
fclose(f);
- free(f);
+ free(code);
return -33;
}
fprintf(stderr, "done\n");