btrfs-progs: fix memory leak with missing device
authorJustin Maggard <jmaggard10@gmail.com>
Thu, 28 Jul 2016 17:44:11 +0000 (10:44 -0700)
committerDavid Sterba <dsterba@suse.com>
Fri, 29 Jul 2016 13:04:54 +0000 (15:04 +0200)
commitc52762b4c6716a97a8b561e019efd7bef395ad2f
tree9ae6700d9435222089c6731c125ae94e594ec727
parentaf1812090bf957cdbc3d2e49e3a2d68b2108a07d
btrfs-progs: fix memory leak with missing device

In read_one_chunk(), we may add an empty entry for a missing device.
However, this entry wasn't being added to the dev_list, and so it never
got freed.

Signed-off-by: Justin Maggard <jmaggard@netgear.com>
Signed-off-by: David Sterba <dsterba@suse.com>
volumes.c