btrfs-progs: check: release path after usage
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 24 Oct 2016 15:18:14 +0000 (10:18 -0500)
committerDavid Sterba <dsterba@suse.com>
Tue, 25 Oct 2016 12:31:06 +0000 (14:31 +0200)
commita7ec18a8640338fd9b4fd2424012f78f31fcef38
treef21c5f4da134f74624c470a8695d583faf21b066
parentffb1b847bd554e45c00212280847b9f2059a87f3
btrfs-progs: check: release path after usage

While performing an fsck, an assertion failure occurs because of reusing path in a loop.
ctree.c:1112: btrfs_search_slot: Warning: assertion `p->nodes[0] != NULL` failed, value 0

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c