aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorAnsuel Smith <[email protected]>2021-05-26 01:09:31 +0200
committerMiquel Raynal <[email protected]>2021-05-26 11:01:37 +0200
commit10f3b4d79958d6f9f71588c6fa862159c83fa80f (patch)
tree48cb00385792a740df0c7643998d46e0c355387b /lib/mpi/mpi-sub-ui.c
parenteb1765c40530ccc8690b9dad88cec6aaa6bfb498 (diff)
mtd: parsers: qcom: Fix leaking of partition name
Add cleanup function as the name variable for the partition name was allocaed but never freed after the use as the add mtd function duplicate the name and free the pparts struct as the partition name is assumed to be static. The leak was found using kmemleak. Fixes: 803eb124e1a6 ("mtd: parsers: Add Qcom SMEM parser") Signed-off-by: Ansuel Smith <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions