
On Tue, Feb 12, 2019 at 09:19:00AM -0500, John Ferlan wrote:
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> --- src/storage/storage_backend.c | 9 +-- src/storage/storage_backend_disk.c | 62 +++++++------------ src/storage/storage_backend_fs.c | 17 ++--- src/storage/storage_backend_gluster.c | 30 ++++----- src/storage/storage_backend_iscsi.c | 72 +++++++--------------- src/storage/storage_backend_iscsi_direct.c | 36 ++++------- src/storage/storage_backend_logical.c | 32 +++------- src/storage/storage_backend_mpath.c | 17 +++-- src/storage/storage_backend_rbd.c | 35 ++++------- src/storage/storage_backend_scsi.c | 64 +++++++------------ src/storage/storage_backend_sheepdog.c | 27 +++----- src/storage/storage_backend_vstorage.c | 25 +++----- src/storage/storage_backend_zfs.c | 15 ++--- src/storage/storage_file_gluster.c | 17 ++--- 14 files changed, 150 insertions(+), 308 deletions(-)
Reviewed-by: Ján Tomko <jtomko@redhat.com> Jano