]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs/squashfs: sqfs_get_abs_path: fix possible memory leak on error
authorRichard Genoud <richard.genoud@posteo.net>
Tue, 3 Nov 2020 11:11:17 +0000 (12:11 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 19 Nov 2020 14:45:49 +0000 (09:45 -0500)
commit33686804d29e676177d408f1ce047b8c35185ddb
treef4692bb5864688622c0f55c390cdb0f6892b0ddf
parent53db0e24a8f981c1e303a1c745b8f0e28544096f
fs/squashfs: sqfs_get_abs_path: fix possible memory leak on error

if  sqfs_tokenize(rel_tokens, rc, rel); fails, the function exits
without freeing the array base_tokens.

Reviewed-by: Joao Marcos Costa <jmcosta944@gmail.com>
Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
fs/squashfs/sqfs.c