]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs/squashfs: sqfs_read: fix memory leak on finfo.blk_sizes
authorRichard Genoud <richard.genoud@posteo.net>
Tue, 3 Nov 2020 11:11:18 +0000 (12:11 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 19 Nov 2020 14:45:49 +0000 (09:45 -0500)
commit571b67ee1dcb989dc50575f14e87bfdef6bfd8db
tree808aeaf8cfd0f74154515f0256c8ef0b5ef81681
parent33686804d29e676177d408f1ce047b8c35185ddb
fs/squashfs: sqfs_read: fix memory leak on finfo.blk_sizes

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 <jmcosta944@gmail.com>
Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
fs/squashfs/sqfs.c