]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: free path in ocfs2_remove_inode_range()
authorYounger Liu <younger.liu@huawei.com>
Wed, 11 Sep 2013 21:19:59 +0000 (14:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:56:50 +0000 (15:56 -0700)
commitf5dbd06199485211739f457b241f9f92f9dec039
treee8073825aa576aa2e56955a18a40fd27df3cb08a
parentf06dd825b48415ff577a777aa181e56c9c98007e
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>
fs/ocfs2/file.c