]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virSecuritySELinuxRestoreFileLabel: Refactor cleanup
authorPeter Krempa <pkrempa@redhat.com>
Mon, 19 May 2025 13:27:44 +0000 (15:27 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 22 Jul 2025 14:52:34 +0000 (16:52 +0200)
commit80ade3ac7c31809ee45c4f9604e89da8e18e5abb
treeca4aa0923bb6e99ff4ffd5d939a46212c64eecb2
parent7891ed2d101af50aecef2493f573539b60063731
virSecuritySELinuxRestoreFileLabel: Refactor cleanup

Automatically free 'fcon' and 'newpath' and remove the 'cleanup' label
and 'ret' variable.

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