Btrfs: fix memory leak in do_walk_down
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 14 Sep 2016 02:02:27 +0000 (19:02 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2016 17:37:06 +0000 (19:37 +0200)
commita958eab0ed7fdc1b977bc25d3af6efedaa945488
treedbb8ced3615f54c919f3bd80cc12fb96517c97a2
parentc01f5f96f511419ee656a60e09605b7b6a63b66c
Btrfs: fix memory leak in do_walk_down

The extent buffer 'next' needs to be free'd conditionally.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c