[PATCH v2 RESEND] mtd: parsers: Fix potential memory leak in mtd_parser_tplink_safeloader_parse()
Miquel Raynal
miquel.raynal at bootlin.com
Mon Jan 2 03:17:44 PST 2023
On Thu, 2022-12-08 at 11:36:20 UTC, 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>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks.
Miquel
More information about the linux-mtd
mailing list