]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virStorageBackendISCSISetAuth: Refactor cleanup
authorPeter Krempa <pkrempa@redhat.com>
Thu, 8 Dec 2022 10:19:23 +0000 (11:19 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 1 Feb 2023 08:16:17 +0000 (09:16 +0100)
commitfbb323fe615dd5390e2c86779a978629b323fa35
treeabbe1c0db86ee8789ad1ef6d1647b05e1c8b526a
parent880cd081deccf68346cbed14a3207623523dbfa4
virStorageBackendISCSISetAuth: Refactor cleanup

Automatically free 'conn' and remove the 'cleanup' section and 'ret'
variable. 'datatypes.h' contains the declaration of the autoptr cleanup
function for virConnect.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/storage/storage_backend_iscsi.c