diff options
author | Chao Yu <yuchao0@huawei.com> | 2020-03-03 11:57:06 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-03-31 06:46:26 +0300 |
commit | 09ff48011e220e2b4f1d9ce2f472ecb63645cbfc (patch) | |
tree | 157030022cdb3ccd25942b8ddb4153a83862543f /fs | |
parent | 91faa5344fd22acf383a01701f184c450b7a6a76 (diff) | |
download | linux-09ff48011e220e2b4f1d9ce2f472ecb63645cbfc.tar.xz |
f2fs: compress: fix to call missing destroy_compress_ctx()
Otherwise, it will cause memory leak.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/compress.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index fde4af20c523..1e5bbb9c1d3e 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -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, |