From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 12 Sep 2015 08:51:17 -0400 Subject: [U-Boot] [U-Boot,03/10] ext4: free allocations by parse_path() In-Reply-To: <1441425831-3441-3-git-send-email-swarren@wwwdotorg.org> References: <1441425831-3441-3-git-send-email-swarren@wwwdotorg.org> Message-ID: <20150912125117.GA26226@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 Fri, Sep 04, 2015 at 10:03:44PM -0600, Stephen Warren wrote: > From: Stephen Warren > > parse_path() malloc()s the entries in the array it's passed. Those > allocations must be free()d by the caller, ext4fs_get_parent_inode_num(). > Add code to do this. > > For this to work, all the array entries must be dynamically allocated, > rather than a mix of dynamic and static allocations. Fix parse_path() not > to over-write arr[0] with a pointer to statically allocated data. > > Signed-off-by: Stephen Warren > Acked-by: Lukasz Majewski > Tested-by: Lukasz Majewski Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: