Re: [PATCH v3 2/8] storage: Use VIR_AUTOFREE for storage backends

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
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@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux