diff options
author | Thomas Jarosch <tomj@simonv.com> | 2011-08-25 20:40:28 +0000 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2011-08-25 20:40:28 +0000 |
commit | e0024c9a7138ce758524b2d0c03731f379a1b002 (patch) | |
tree | 99ae815c6d8eb3dd872fe50b20107ee73146fcf3 | |
parent | 51ae2e6ffcb6e0f5fbecb1ec6af207be70d5701a (diff) | |
download | rockbox-e0024c9a7138ce758524b2d0c03731f379a1b002.tar.gz 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
-rw-r--r-- | utils/rk27utils/rk27load/stage3_upload.c | 2 |
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) | |||
45 | { | 45 | { |
46 | fprintf(stderr, "\n[error]: I/O error\n"); | 46 | fprintf(stderr, "\n[error]: I/O error\n"); |
47 | fclose(f); | 47 | fclose(f); |
48 | free(f); | 48 | free(code); |
49 | return -33; | 49 | return -33; |
50 | } | 50 | } |
51 | fprintf(stderr, "done\n"); | 51 | fprintf(stderr, "done\n"); |