Re: [PATCH v2 20/28] fs/squashfs: sqfs_read: fix memory leak on finfo.blk_sizes

2020-11-19 Thread Tom Rini
On Tue, Nov 03, 2020 at 12:11:18PM +0100, Richard Genoud wrote: > finfo.blk_sizes may not be freed in case of error in the for loop > Setting it to null and freeing it at the end makes prevents that from > happening. > > Reviewed-by: Joao Marcos Costa > Signed-off-by: Richard Genoud Applied to

Re: [PATCH v2 20/28] fs/squashfs: sqfs_read: fix memory leak on finfo.blk_sizes

2020-11-03 Thread João Marcos Costa
Reviewed-by Joao Marcos Costa Em ter., 3 de nov. de 2020 às 08:12, Richard Genoud < richard.gen...@posteo.net> escreveu: > finfo.blk_sizes may not be freed in case of error in the for loop > Setting it to null and freeing it at the end makes prevents that from > happening. > > Signed-off-by: Ric

[PATCH v2 20/28] fs/squashfs: sqfs_read: fix memory leak on finfo.blk_sizes

2020-11-03 Thread Richard Genoud
finfo.blk_sizes may not be freed in case of error in the for loop Setting it to null and freeing it at the end makes prevents that from happening. Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 48 +- 1 file changed, 22 insertions(+), 26 deleti