xfs: fix memory leak in xfs_dir2_node_removename
authorMark Tinguely <tinguely@sgi.com>
Sun, 6 Oct 2013 02:48:25 +0000 (21:48 -0500)
committerBen Myers <bpm@sgi.com>
Tue, 17 Dec 2013 15:15:12 +0000 (09:15 -0600)
commit3a8c92086d1c05ae1cf6a52ffd8dde2851e6b1d3
tree25865d8b9c2cbbd36562ee3e3a2f10a29cb4e3fa
parentf94c44573e7c22860e2c3dfe349c45f72ba35ad3
xfs: fix memory leak in xfs_dir2_node_removename

Fix the leak of kernel memory in xfs_dir2_node_removename()
when xfs_dir2_leafn_remove() returns an error code.

Signed-off-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
(cherry picked from commit ef701600fd26cace9d513ee174688a2b83832126)
fs/xfs/xfs_dir2_node.c