]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virSecuritySELinux(Set|Restore)ChardevLabel: Refactor cleanup
authorPeter Krempa <pkrempa@redhat.com>
Tue, 27 May 2025 14:17:12 +0000 (16:17 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 22 Jul 2025 14:52:35 +0000 (16:52 +0200)
commit7f35a1e6f249218c18792d2b46515ed4f366de84
treeee2f8cb29a1da1a9dc9fe536d0fb66791d9154dd
parent85e22de81096c361d9cc9894347ab67c1e0d68ee
virSecuritySELinux(Set|Restore)ChardevLabel: Refactor cleanup

Declare 'in'/'out' only in the bocks which use them and automatically
free them. Since cleanup section was removed we don't need a 'ret'
variable any more.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/security/security_selinux.c