diff options
author | Younger Liu <younger.liu@huawei.com> | 2013-09-11 14:19:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-11 15:56:50 -0700 |
commit | 7aebff18b91ebdefe15bb7d3f5d711df8312a7fb (patch) | |
tree | e8073825aa576aa2e56955a18a40fd27df3cb08a /fs/ocfs2 | |
parent | 6cae6d3189ef34647bca9b9b1d240ebd760e5dea (diff) | |
download | kernel_goldelico_gta04-7aebff18b91ebdefe15bb7d3f5d711df8312a7fb.zip kernel_goldelico_gta04-7aebff18b91ebdefe15bb7d3f5d711df8312a7fb.tar.gz kernel_goldelico_gta04-7aebff18b91ebdefe15bb7d3f5d711df8312a7fb.tar.bz2 |
ocfs2: free path in ocfs2_remove_inode_range()
In ocfs2_remove_inode_range(), there is a memory leak. The variable path
has allocated memory with ocfs2_new_path_from_et(), but it is not free.
Signed-off-by: Younger Liu <younger.liu@huawei.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 409c549..4f8197c 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -1796,6 +1796,7 @@ static int ocfs2_remove_inode_range(struct inode *inode, ocfs2_truncate_cluster_pages(inode, byte_start, byte_len); out: + ocfs2_free_path(path); ocfs2_schedule_truncate_log_flush(osb, 1); ocfs2_run_deallocs(osb, &dealloc); |