btrfs-progs: Fix a extent buffer leak in count_csum_range().
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Mon, 5 Jan 2015 07:56:15 +0000 (15:56 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 9 Jan 2015 17:34:39 +0000 (18:34 +0100)
commit0da591ddf28b0b5f3fc16b82c6e72c3c433068ed
tree6bde7b0b1ac7405a1fcb6cdb60e9ed3a751d4567
parent73cc83d08e9413c33d21aece1f5d2425b3c3099d
btrfs-progs: Fix a extent buffer leak in count_csum_range().

The commit f495a2ac6611 ("btrfs-progs: fsck: remove unfriendly BUG_ON()
for searching tree failure") is causing tons of extent buffer leak if some
csum mismatches in btrfsck.

This is caused by a misplaced btrfs_release_path(), fix it.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-check.c