projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
859acaf
)
Btrfs: fix memory leak in load_free_space_cache()
author
Tsutomu Itoh
<t-itoh@jp.fujitsu.com>
Tue, 14 Feb 2012 08:12:23 +0000
(17:12 +0900)
committer
David Sterba
<dsterba@suse.cz>
Wed, 15 Feb 2012 15:40:24 +0000
(16:40 +0100)
load_free_space_cache() has forgotten to free path.
Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
fs/btrfs/free-space-cache.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/free-space-cache.c
b/fs/btrfs/free-space-cache.c
index 5802b1473c3d487bbfabe9b6787491b99ca39714..b30242f4435edb86a1fb9af926d2ce5b4788a4d8 100644
(file)
--- a/
fs/btrfs/free-space-cache.c
+++ b/
fs/btrfs/free-space-cache.c
@@
-777,6
+777,7
@@
int load_free_space_cache(struct btrfs_fs_info *fs_info,
spin_lock(&block_group->lock);
if (block_group->disk_cache_state != BTRFS_DC_WRITTEN) {
spin_unlock(&block_group->lock);
+ btrfs_free_path(path);
goto out;
}
spin_unlock(&block_group->lock);