xfs: Fix memory leaks in xfs_dir2_node_find_entry() function
commit6b8e57b0475bd2f2734ae83c8d4e5de669f3e3f1
authorPaulo Alcantara <pcacjr@zytor.com>
Sat, 28 Jul 2012 17:52:15 +0000 (28 14:52 -0300)
committerPaulo Alcantara <pcacjr@zytor.com>
Sat, 28 Jul 2012 17:52:15 +0000 (28 14:52 -0300)
tree82c45e072d3f4fb22c6c80176caeb25b6b2db400
parent223299e149ea686fa0ce1636f0983b07f23ceb1c
xfs: Fix memory leaks in xfs_dir2_node_find_entry() function

This function has been leaking memory when it found or not an entry,
since the leaf pointer were not being freed on either sucesss or fail.

Also, after doing a binary search to find the hash we're interested in,
and if it wasn't found, then the entry we want is not in that current
directory, so we do not need to print out an error message in this case.

Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
core/fs/xfs/xfs.c