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> --- 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)); -- 2.43.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel