[PATCH v2] mtd: parsers: Fix potential memory leak in mtd_parser_tplink_safeloader_parse()

Dan Carpenter error27 at gmail.com
Thu Dec 8 03:38:13 PST 2022

On Thu, Dec 08, 2022 at 11:32:53AM +0000, Yuan Can wrote:
> The parts needs to be freed with all its elements, otherwise it will be
> leaked.
> Fixes: 00a3588084be ("mtd: parsers: add TP-Link SafeLoader partitions table parser")
> Signed-off-by: Yuan Can <yuancan at huawei.com>


Reviewed-by: Dan Carpenter <error27 at gmail.com>

dan carpenter

More information about the linux-mtd mailing list