btrfs-progs: Free resources when returning error from cmd_subvol_create()
authorEric Sandeen <sandeen@redhat.com>
Mon, 4 Mar 2013 22:40:00 +0000 (16:40 -0600)
committerDavid Sterba <dsterba@suse.cz>
Sun, 10 Mar 2013 15:03:48 +0000 (16:03 +0100)
commitb1d5f20c3a744c2994c32dd616ba2605c4e4f395
tree5068a6f12f28e3da36ccf2c737af7fae6e07ca5e
parent323318fd3500a447987d355f6189230ecc0d4256
btrfs-progs: Free resources when returning error from cmd_subvol_create()

cmd_subvol_create() currently returns without freeing resources
in almost every error case.  Switch to a goto arrangement
so all cleanup can be done in one place.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
cmds-subvolume.c