Skip to content

Commit 09ff480

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: compress: fix to call missing destroy_compress_ctx()
Otherwise, it will cause memory leak. Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 91faa53 commit 09ff480

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/f2fs/compress.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ static int f2fs_compress_pages(struct compress_ctx *cc)
396396
cc->cpages[i] = NULL;
397397
}
398398

399+
cops->destroy_compress_ctx(cc);
400+
399401
cc->nr_cpages = nr_cpages;
400402

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

0 commit comments

Comments
 (0)