]> git.dujemihanovic.xyz Git - u-boot.git/commit
mkimage: fit: Free buf directly in fit_extract_data()
authorBin Meng <bin.meng@windriver.com>
Sat, 18 Apr 2020 08:59:11 +0000 (01:59 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 24 Apr 2020 14:51:56 +0000 (10:51 -0400)
commit0dbd6e3698b58f60cddb64a0d58a4e23fb5f55d3
tree6b6c55c68a7d2c8699d119a78a5fce596a13affd
parent3fc85a782a3d46fcb32bfb93829d2424d696c4d3
mkimage: fit: Free buf directly in fit_extract_data()

If given ptr to free() is NULL, no operation is performed.
Hence we can just free buf directly in fit_extract_data().

Signed-off-by: Bin Meng <bin.meng@windriver.com>
tools/fit_image.c