Btrfs-progs: fix possible memory leak related to subvolume/snapshot creation
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Wed, 3 Jul 2013 16:07:38 +0000 (00:07 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 9 Aug 2013 12:32:33 +0000 (14:32 +0200)
commit705e76ee8ddb2fd3d8127464b0c482b9fe43ef3e
tree4fd73807ae4e423a614feb30c2e22aabe73c007d
parent876e3f9380d373ba76f9b6d4c08ff84327956abf
Btrfs-progs: fix possible memory leak related to subvolume/snapshot creation

The operation related qgroup inherit may fails, if it fails, we should
free memory allocated,otherwise, memory leak happens.

Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
cmds-subvolume.c