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>
1 parent a8d9550 commit 8d283231c9193a9e7c754fe0b03da9bf96d9bf05
@Jonathan Wright Jonathan Wright authored on 3 May 2018
Showing 1 changed file
View
tools/fiptool/fiptool.c