The commit is pushed to "branch-rh9-5.14.0-427.44.1.vz9.80.x-ovz" and will appear at g...@bitbucket.org:openvz/vzkernel.git after rh9-5.14.0-427.44.1.vz9.80.25 ------> commit 15fbb14c0730e591e769b3a5eceacb1f408df1f8 Author: Alexander Atanasov <alexander.atana...@virtuozzo.com> Date: Mon Apr 7 16:32:52 2025 +0300
dm-ploop: fix a memory leak on destroy of ploop device mtfile array is allocated array of pointers to files but it is leaked on device destroy, so free it. https://virtuozzo.atlassian.net/browse/PSBM-160866 Signed-off-by: Alexander Atanasov <alexander.atana...@virtuozzo.com> Feature: dm-ploop: ploop target driver --- drivers/md/dm-ploop-target.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/md/dm-ploop-target.c b/drivers/md/dm-ploop-target.c index f306f0c85ee5..de549f7633af 100644 --- a/drivers/md/dm-ploop-target.c +++ b/drivers/md/dm-ploop-target.c @@ -211,6 +211,7 @@ static void ploop_destroy(struct ploop *ploop) if (ploop->deltas[ploop->nr_deltas].mtfile[i]) fput(ploop->deltas[ploop->nr_deltas].mtfile[i]); } + kfree(ploop->deltas[ploop->nr_deltas].mtfile); } WARN_ON(ploop_has_pending_activity(ploop)); WARN_ON(!ploop_empty_htable(ploop->exclusive_pios)); _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel