]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Use VIR_AUTOCLOSE
authorJohn Ferlan <jferlan@redhat.com>
Thu, 31 Jan 2019 23:56:27 +0000 (18:56 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 18:11:31 +0000 (13:11 -0500)
commit180f3207ae1742861ca765b49233fde6d2b67740
treee822b8489ddce3cc6337bcc86c8243b46e05e04d
parentd5aa75e64b8ea998109ae164ef08d541948a0db0
storage: Use VIR_AUTOCLOSE

Modify code to use the VIR_AUTOCLOSE logic 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/storage/storage_backend_logical.c
src/storage/storage_backend_scsi.c
src/storage/storage_file_fs.c
src/storage/storage_util.c
src/util/virstoragefile.c