From: Tom Rini Date: Fri, 24 Apr 2020 13:13:19 -0400 Subject: [PATCH 3/3] mkimage: fit: Free buf directly in fit_extract_data() In-Reply-To: <1587200351-12590-3-git-send-email-bmeng.cn@gmail.com> References: <1587200351-12590-1-git-send-email-bmeng.cn@gmail.com> <1587200351-12590-3-git-send-email-bmeng.cn@gmail.com> Message-ID: <20200424171319.GD4555@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Apr 18, 2020 at 01:59:11AM -0700, Bin Meng wrote: > From: Bin Meng > > 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 Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: