summaryrefslogtreecommitdiffstats
path: root/utils/rk27utils/rk27load/stage3_upload.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rk27utils/rk27load/stage3_upload.c')
-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");