Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 577ae6d5 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

f2fs: compress: fix to call missing destroy_compress_ctx()



Otherwise, it will cause memory leak.

Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent b2a95f00
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -396,6 +396,8 @@ static int f2fs_compress_pages(struct compress_ctx *cc)
		cc->cpages[i] = NULL;
	}

	cops->destroy_compress_ctx(cc);

	cc->nr_cpages = nr_cpages;

	trace_f2fs_compress_pages_end(cc->inode, cc->cluster_idx,