Skip to content
Commit 7adde5ac authored by Yuan Can's avatar Yuan Can Committed by Miquel Raynal
Browse files

mtd: parsers: Fix potential memory leak in mtd_parser_tplink_safeloader_parse()



The parts needs to be freed with all its elements, otherwise it will be
leaked.

Fixes: 00a35880 ("mtd: parsers: add TP-Link SafeLoader partitions table parser")
Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
Reviewed-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20221208113620.78855-1-yuancan@huawei.com
parent 88603b6d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment