diff options
author | Brian Jones <brian.j.jones@intel.com> | 2017-05-16 16:51:40 -0700 |
---|---|---|
committer | Geoff Gustafson <geoff@linux.intel.com> | 2017-05-16 16:51:40 -0700 |
commit | 6a276582630795a39fc14c5d81d0962aab6caefb (patch) | |
tree | e7cd06939a7d97201e9b10f3c14e28c7439a10ae | |
parent | 9e65be33fa010f95f9dcae79a318aa35270e57e7 (diff) |
[ashell] Fixing a leak in ihex (#1167)
Signed-off-by: Brian J Jones <brian.j.jones@intel.com>
-rw-r--r-- | src/ashell/ihex-handler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ashell/ihex-handler.c b/src/ashell/ihex-handler.c index 37195a2..233b535 100644 --- a/src/ashell/ihex-handler.c +++ b/src/ashell/ihex-handler.c @@ -150,7 +150,7 @@ uint32_t ihex_process_finish() { if (upload_state == UPLOAD_ERROR) { printf("[Error] Callback handle error \n"); - fs_close(zfile); + fs_close_alloc(zfile); ashell_process_start(); return 1; @@ -159,7 +159,7 @@ uint32_t ihex_process_finish() if (upload_state != UPLOAD_FINISHED) return 1; - fs_close(zfile); + fs_close_alloc(zfile); ihex_end_read(&ihex); comms_print("[EOF]\n"); |