]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cmdVolCreateAs: Rework to follow usual func pattern
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Feb 2016 15:35:48 +0000 (16:35 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Feb 2016 15:16:09 +0000 (16:16 +0100)
commitbb0b8e5d67526c8c34b7489775c8322ccf4d9639
tree5ecdb1a1e2197421053626353557607a953f338c
parent26946f674e95d09f52617d4f17b2dec9272c4299
cmdVolCreateAs: Rework to follow usual func pattern

The way we usually write functions is that we start the work and
if something goes bad we goto cleanup and roll back there. Or
just free resources that are no longer needed. Do the same here.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-volume.c