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>
Thu, 5 Dec 2013 22:51:19 +0000 (16:51 -0600)
commitef701600fd26cace9d513ee174688a2b83832126
tree2de2fc9fb2de36ae36c07571e2bc7fe2a3152ddd
parent2a84108fe275f95fbe838b1c92b7c45258dcae5c
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>
fs/xfs/xfs_dir2_node.c