commit | 05527847abb7e4922578bab538b2e334d1bb8f78 | [log] [tgz] |
---|---|---|
author | Andrea della Porta <andrea.porta@suse.com> | Sun Mar 02 19:29:31 2025 +0100 |
committer | Tom Rini <trini@konsulko.com> | Wed Mar 05 12:14:31 2025 -0600 |
tree | 5b023ee391b6bc4d67a6615df3861d6a6a96eaf7 | |
parent | 9bdc8f0da158163319382803237a47e7682599b0 [diff] |
fs/squashfs: Fix memory leak in sqfs_size_nest() In case MAX_SYMLINK_NEST is reached while determining the size on a symlink node, the function returns immediately. This would not free the resources after the free_strings: label causing a memory leak. Set the ret value and just break out of the switch to fix this. Signed-off-by: Andrea della Porta <andrea.porta@suse.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>