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)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 25 Jan 2022 09:32:07 +0000 (10:32 +0100)
commit3dd8ba961b9356c4113b96541c752c73d98fef70
tree215b557750ef5f71964ceec58c6ec431c51f13d6
parent65d003cca335cabc0160d3cd7daa689eaa9dd3cd
mtd: parsers: qcom: Fix missing free for pparts in cleanup

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
drivers/mtd/parsers/qcomsmempart.c