]> xenbits.xensource.com Git - libvirt.git/commit
storage: Use VIR_AUTOPTR(virCommand)
authorJohn Ferlan <jferlan@redhat.com>
Thu, 31 Jan 2019 18:16:44 +0000 (13:16 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 13:51:23 +0000 (08:51 -0500)
commit9a4199304ffb8eda0f8e27c037f51b3fa61f261a
treea13720bcc4e1b51ba95ac585678cfb07e1563416
parent813e7759834202f78d0f9419c80353b00685c827
storage: Use VIR_AUTOPTR(virCommand)

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>
12 files changed:
src/storage/storage_backend_disk.c
src/storage/storage_backend_fs.c
src/storage/storage_backend_logical.c
src/storage/storage_backend_sheepdog.c
src/storage/storage_backend_vstorage.c
src/storage/storage_backend_zfs.c
src/storage/storage_driver.c
src/storage/storage_util.c
src/util/virstoragefile.c
tests/storagepoolxml2argvtest.c
tests/storagevolxml2argvtest.c
tests/virstoragetest.c