]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: storageencryption: Refactor cleanup section in virStorageEncryptionParseXML
authorPeter Krempa <pkrempa@redhat.com>
Tue, 6 Mar 2018 13:57:17 +0000 (14:57 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 8 Mar 2018 13:29:50 +0000 (14:29 +0100)
commit15948e62662c95db100402ecc9ce84969aebc4c1
tree7e387c8cf79855d5fb2f92c4493cf6fb78977f3a
parente7c44b3f7c9924fa56b796a9281be4dfb27c9e23
util: storageencryption: Refactor cleanup section in virStorageEncryptionParseXML

The function used the 'cleanup' label only in error cases. This patch
makes the code pass the cleanup label in every case and removes few
unnecessary VIR_FREEs.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/util/virstorageencryption.c