提交 17589bd9 编写于 作者: A Alexander Block 提交者: Chris Mason

Btrfs: fix memory leak for name_cache in send/receive

When everything is done, name_cache_free is called which however
forgot to call kfree on the cache entries.
Signed-off-by: NAlexander Block <ablock84@googlemail.com>
上级 adbe7fb6
......@@ -1822,6 +1822,7 @@ static void name_cache_free(struct send_ctx *sctx)
list_for_each_entry_safe(nce, tmp, &sctx->name_cache_list, list) {
name_cache_delete(sctx, nce);
kfree(nce);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册