mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-27 04:00:57 +00: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