btrfs-progs: free the local list pending_list in btrfs_scan_one_dir
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 5 Sep 2013 02:38:57 +0000 (10:38 +0800)
committerChris Mason <chris.mason@fusionio.com>
Wed, 16 Oct 2013 12:20:42 +0000 (08:20 -0400)
commitaea22fa1b55e3e8830c8d46f2d7e4731f1b58fcf
tree6b0c4c712e5cba0bcf1edd8dcde25aa957f3df54
parent0785476db045ba599ae4dd5517a1b11bc36ac811
btrfs-progs: free the local list pending_list in btrfs_scan_one_dir

Originally the local pending_list is not guaranteed to be freed upon
fails, it should be emptyed and the elements should be freed.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
utils.c