[PATCH v2 04/28] fs/squashfs: sqfs_closedir: fix memory leak

João Marcos Costa jmcosta944 at gmail.com
Tue Nov 3 13:35:33 CET 2020


Reviewed-by Joao Marcos Costa <jmcosta944 at gmail.com>

Em ter., 3 de nov. de 2020 às 08:12, Richard Genoud <
richard.genoud at posteo.net> escreveu:

> sqfs_dirs wasn't freed anywhere.
>
> Signed-off-by: Richard Genoud <richard.genoud at posteo.net>
> ---
>  fs/squashfs/sqfs.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c
> index b94a9715205..0ac922af9e7 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);
>  }
>


-- 
Atenciosamente,
João Marcos Costa

www.linkedin.com/in/jmarcoscosta/
https://github.com/jmarcoscosta


More information about the U-Boot mailing list