mtd: parsers: qcom: Fix missing free for pparts in cleanup
authorAnsuel Smith <ansuelsmth@gmail.com>
Sun, 16 Jan 2022 03:22:11 +0000 (04:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:06:02 +0000 (12:06 +0100)
commit1b37889f9a151d26a3fb0d3870f6e1046dee2e24
treeeaa5e34ee7d992d4a56a7f73331f8b45656e8d75
parenta2995fe23095ceda2dc382fbe057f5e164595548
mtd: parsers: qcom: Fix missing free for pparts in cleanup

commit 3dd8ba961b9356c4113b96541c752c73d98fef70 upstream.

Mtdpart doesn't free pparts when a cleanup function is declared.
Add missing free for pparts in cleanup function for smem to fix the
leak.

Fixes: 10f3b4d79958 ("mtd: parsers: qcom: Fix leaking of partition name")
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220116032211.9728-2-ansuelsmth@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/parsers/qcomsmempart.c