diff options
| author | 2017-08-24 14:36:19 +0200 | |
|---|---|---|
| committer | 2017-08-24 14:36:19 +0200 | |
| commit | 5f7e815d3341c164128d7cfc42aece02f60ddb32 (patch) | |
| tree | 5d3392d57969664f9793ac2c441fa3300e31b23c /src/tools/imgtool/imgtool.cpp | |
| parent | 2a047019b5ea6bdb022897b2807416cae64287b6 (diff) | |
imgtool: hopefully fixed the "GET" command
Diffstat (limited to 'src/tools/imgtool/imgtool.cpp')
| -rw-r--r-- | src/tools/imgtool/imgtool.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/tools/imgtool/imgtool.cpp b/src/tools/imgtool/imgtool.cpp index f4a41246495..52d4b23c759 100644 --- a/src/tools/imgtool/imgtool.cpp +++ b/src/tools/imgtool/imgtool.cpp @@ -1750,7 +1750,6 @@ imgtoolerr_t imgtool::partition::get_file(const char *filename, const char *fork { imgtoolerr_t err; imgtool::stream::ptr f; - char *new_fname = nullptr; char *alloc_dest = nullptr; const char *filter_extension = nullptr; @@ -1785,15 +1784,11 @@ imgtoolerr_t imgtool::partition::get_file(const char *filename, const char *fork goto done; } - err = read_file(new_fname, fork, *f, filter); - if (err) - goto done; + err = read_file(filename, fork, *f, filter); done: if (alloc_dest != nullptr) free(alloc_dest); - if (new_fname != nullptr) - free(new_fname); return err; } |
