mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
synced 2024-11-24 02:03:37 +08:00
f2fs-tools:fix memory leak in write dquot
this patch free ddquot in qtree_write_dquot to avoid memory leak Signed-off-by: Xiaojun Wang <wangxiaojun11@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
c6968d44b9
commit
98e6f003d4
@ -353,6 +353,7 @@ int qtree_write_dquot(struct dquot *dquot)
|
||||
if (ret != info->dqi_entry_size) {
|
||||
log_err("Quota write failed (id %u): %s",
|
||||
(unsigned int)dquot->dq_id, strerror(errno));
|
||||
quota_free_mem(&ddquot);
|
||||
return ret;
|
||||
}
|
||||
quota_free_mem(&ddquot);
|
||||
|
Loading…
Reference in New Issue
Block a user