]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Introduce VIR_DEFINE_AUTOPTR_FUNC for virStoragePoolSource
authorJohn Ferlan <jferlan@redhat.com>
Thu, 31 Jan 2019 13:48:11 +0000 (08:48 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 13:51:23 +0000 (08:51 -0500)
commitcf460752932b37da9197853df996f4ae855b1b13
tree9793a8c91d4732688b41cabb4a6eddfbe20efba6
parent13395548b2a6c3e33861312976d7ea7ebb738728
conf: Introduce VIR_DEFINE_AUTOPTR_FUNC for virStoragePoolSource

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>
src/conf/storage_conf.c
src/conf/storage_conf.h
src/storage/storage_backend_fs.c
src/storage/storage_backend_gluster.c
src/storage/storage_backend_iscsi.c
src/storage/storage_backend_iscsi_direct.c
src/test/test_driver.c