Skip to content

Commit

Permalink
Merge pull request #1374 from jonathanwright-ARM/jw/fix-memory-leaks-…
Browse files Browse the repository at this point in the history
…in-fiptool

Fix memory leaks in fiptool
  • Loading branch information
danh-arm authored May 3, 2018
2 parents 0ef858b + 8d28323 commit 0d2a1e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/fiptool/fiptool.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ static void free_image_desc(image_desc_t *desc)
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);
}

Expand Down

0 comments on commit 0d2a1e4

Please sign in to comment.