From: Richard Genoud Date: Tue, 3 Nov 2020 11:11:02 +0000 (+0100) Subject: fs/squashfs: sqfs_closedir: fix memory leak X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=87d11e08e4792b3d188143972ba3a1651a52beee;p=u-boot.git fs/squashfs: sqfs_closedir: fix memory leak sqfs_dirs wasn't freed anywhere. Reviewed-by: Joao Marcos Costa Signed-off-by: Richard Genoud --- diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index b94a971520..0ac922af9e 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c @@ -1573,4 +1573,5 @@ void sqfs_closedir(struct fs_dir_stream *dirs) free(sqfs_dirs->inode_table); free(sqfs_dirs->dir_table); free(sqfs_dirs->dir_header); + free(sqfs_dirs); }