From 892b734c1cdaf1c8986cd86e65046f07c602dedc Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 19 Jan 2025 04:09:52 +0900 Subject: [PATCH] selinux-util: drop _cleanup_context_free_ It is used at only one place, not necessary. --- src/shared/selinux-util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shared/selinux-util.c b/src/shared/selinux-util.c index ff49e219a0b..27ed339ff89 100644 --- a/src/shared/selinux-util.c +++ b/src/shared/selinux-util.c @@ -31,7 +31,6 @@ #if HAVE_SELINUX DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(context_t, context_free, NULL); -#define _cleanup_context_free_ _cleanup_(context_freep) typedef enum Initialized { UNINITIALIZED, @@ -471,7 +470,7 @@ int mac_selinux_get_our_label(char **ret) { int mac_selinux_get_child_mls_label(int socket_fd, const char *exe, const char *exec_label, char **ret_label) { #if HAVE_SELINUX _cleanup_freecon_ char *mycon = NULL, *peercon = NULL, *fcon = NULL; - _cleanup_context_free_ context_t pcon = NULL, bcon = NULL; + _cleanup_(context_freep) context_t pcon = NULL, bcon = NULL; const char *range = NULL, *bcon_str = NULL; security_class_t sclass; int r; -- 2.47.3