]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Use VIR_AUTOFREE for various storage tests
authorJohn Ferlan <jferlan@redhat.com>
Fri, 1 Feb 2019 17:03:16 +0000 (12:03 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 13:51:23 +0000 (08:51 -0500)
commit5f02df444beea79ef7c94f923c0c36135102d562
tree2b163fc53709aab211d3e66c21841eaa3f93f7d2
parentceb3255cdfc3ec5390a9cf5b56d9050d4f0af26e
tests: Use VIR_AUTOFREE for various storage tests

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>
tests/storagebackendsheepdogtest.c
tests/storagepoolxml2argvtest.c
tests/storagepoolxml2xmltest.c
tests/storagevolxml2argvtest.c
tests/storagevolxml2xmltest.c
tests/virstoragetest.c
tests/virstorageutiltest.c