]> xenbits.xensource.com Git - libvirt.git/commit
storage: Use VIR_AUTOFREE for storage backends
authorJohn Ferlan <jferlan@redhat.com>
Thu, 31 Jan 2019 17:09:38 +0000 (12:09 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 18:11:20 +0000 (13:11 -0500)
commit821dd6d80ad26ab468bda223aca1492c76b9ec9e
tree0fdef03612dcbb82af641972cff525f87500d189
parent1ee7294beda77262275450275a0a554989516e33
storage: Use VIR_AUTOFREE for storage backends

Let's make use of the auto __cleanup capabilities. This also allows
for the cleanup of some goto paths.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
14 files changed:
src/storage/storage_backend.c
src/storage/storage_backend_disk.c
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/storage/storage_backend_logical.c
src/storage/storage_backend_mpath.c
src/storage/storage_backend_rbd.c
src/storage/storage_backend_scsi.c
src/storage/storage_backend_sheepdog.c
src/storage/storage_backend_vstorage.c
src/storage/storage_backend_zfs.c
src/storage/storage_file_gluster.c