Btrfs-progs: fix memory leaks on cleanup
authorJosef Bacik <jbacik@fusionio.com>
Mon, 18 Mar 2013 15:07:03 +0000 (11:07 -0400)
committerDavid Sterba <dsterba@suse.cz>
Mon, 18 Mar 2013 18:44:32 +0000 (19:44 +0100)
commit87c09f70b5e334f68cc19c0514d412f666b4eb14
treee2ffc811284807caf2a18ae20018db716e8b7196
parente9393c220f45f8501d7c0c94e83f99fc91273272
Btrfs-progs: fix memory leaks on cleanup

I've been working on btrfs-image and I kept seeing these leaks pop up on
valgrind so I'm just fixing them.  We don't properly cleanup the device cache,
the chunk tree mapping cache, or the space infos on close.  With this patch
valgrind doesn't complain about any memory leaks running btrfs-image.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
disk-io.c
extent-tree.c