tools/fiptool: fix memory leaks in fiptool
authorJonathan Wright <jonathan.wright@arm.com>
Thu, 3 May 2018 14:05:09 +0000 (15:05 +0100)
committerJonathan Wright <jonathan.wright@arm.com>
Thu, 3 May 2018 14:05:09 +0000 (15:05 +0100)
commit8d283231c9193a9e7c754fe0b03da9bf96d9bf05
tree4f491bb0d70db2c2fecde00eeacdfecbf6d5269b
parenta8d9550b527107b85703d7b4e93073e653ae95f7
tools/fiptool: fix memory leaks in fiptool

Free desc->image->buffer before freeing desc->image. We make sure that
the desc->image is non-null before attempting this.

Change-Id: I35c5674629a41d7cf1a78b7b41ca4b930d0fb688
Signed-off-by: Jonathan Wright <jonathan.wright@arm.com>
tools/fiptool/fiptool.c