]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virSecuritySELinuxRestoreFileLabels: Refactor variable freeing
authorPeter Krempa <pkrempa@redhat.com>
Mon, 19 May 2025 13:31:21 +0000 (15:31 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 22 Jul 2025 14:52:34 +0000 (16:52 +0200)
commit4bc8d70969222ce5c21bdf0a2e02072241eb0d5b
tree3e5bedb69f091d9dcd3abe1332d701aaadbbc7d7
parentc936a456b5b69c079af763b789d5c1a8930e1fd0
virSecuritySELinuxRestoreFileLabels: Refactor variable freeing

Declare 'filename' inside the loop that is using it and use automatic
freeing.

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