]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Introduce VIR_DEFINE_AUTOPTR_FUNC for virStorageVolDef
authorJohn Ferlan <jferlan@redhat.com>
Thu, 31 Jan 2019 14:44:54 +0000 (09:44 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 13:51:23 +0000 (08:51 -0500)
commit1f20da92d838532f6a7639d84b292f788ea1391c
tree72f39fdb963e2bf79089fcef17276cae8440ae0e
parentd04fbe7dab545f7b3b5fcfafa594d045489f28c9
conf: Introduce VIR_DEFINE_AUTOPTR_FUNC for virStorageVolDef

Let's make use of the auto __cleanup capabilities cleaning up any
now unnecessary goto paths.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
16 files changed:
src/conf/storage_conf.c
src/conf/storage_conf.h
src/esx/esx_storage_backend_vmfs.c
src/phyp/phyp_driver.c
src/storage/storage_backend_gluster.c
src/storage/storage_backend_iscsi_direct.c
src/storage/storage_backend_mpath.c
src/storage/storage_backend_rbd.c
src/storage/storage_backend_sheepdog.c
src/storage/storage_driver.c
src/storage/storage_util.c
src/test/test_driver.c
src/vbox/vbox_storage.c
tests/storagebackendsheepdogtest.c
tests/storagevolxml2argvtest.c
tests/storagevolxml2xmltest.c