commit | 94b0bed655bd57a4fbf5748f7509532911b935ed | [log] [tgz] |
---|---|---|
author | danh-arm <dan.handley@arm.com> | Thu May 03 16:48:50 2018 +0100 |
committer | GitHub <noreply@github.com> | Thu May 03 16:48:50 2018 +0100 |
tree | 494b756a87f4bc38fd93cc763ecdb329b2bcf3b5 | |
parent | ca3616304aa5f4f7f1d2796cf3894d857cadf4c9 [diff] | |
parent | 242cd3ce9061aec90d04163c01d62027a9b73c24 [diff] |
Merge pull request #1374 from jonathanwright-ARM/jw/fix-memory-leaks-in-fiptool Fix memory leaks in fiptool
diff --git a/tools/fiptool/fiptool.c b/tools/fiptool/fiptool.c index e70ff36..e4348ee 100644 --- a/tools/fiptool/fiptool.c +++ b/tools/fiptool/fiptool.c
@@ -169,7 +169,10 @@ free(desc->name); free(desc->cmdline_name); free(desc->action_arg); - free(desc->image); + if (desc->image) { + free(desc->image->buffer); + free(desc->image); + } free(desc); }