summaryrefslogtreecommitdiff
path: root/fs/btrfs/send.c
diff options
context:
space:
mode:
authorAlexander Block <ablock84@googlemail.com>2012-07-28 16:13:35 +0400
committerChris Mason <chris.mason@fusionio.com>2012-10-01 23:18:51 +0400
commit17589bd96eeb7c2ef2d3baeb05005a24932cd1e9 (patch)
treee4cd72b72aae6703cdfb12a66c9c71a23be5b5dd /fs/btrfs/send.c
parentadbe7fb6c4750621a56867d9bb1980da3a4b8f33 (diff)
downloadlinux-17589bd96eeb7c2ef2d3baeb05005a24932cd1e9.tar.xz
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: Alexander Block <ablock84@googlemail.com>
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r--fs/btrfs/send.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index 68b2543e5d6c..9cee678c0fb6 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -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);
}
}