Btrfs: fix buffer leak in btrfs_next_old_leaf
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Wed, 4 Jul 2012 14:15:02 +0000 (08:15 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 20:28:03 +0000 (16:28 -0400)
commite6466e354a5c23717325adecf387f93be4b9c830
treea7ad528896577109a6509dfb215d59fef855987e
parentf6175efab1e024554a104cca1f86134ef7ce06bc
Btrfs: fix buffer leak in btrfs_next_old_leaf

When calling btrfs_next_old_leaf, we were leaking an extent buffer in the
rare case of using the deadlock avoidance code needed for the tree mod log.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.c