Skip to content
Snippets Groups Projects
user avatar
Andrea della Porta authored
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: default avatarAndrea della Porta <andrea.porta@suse.com>
Reviewed-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
e22b2d77
History