From b23c1cf55ed978b0d82bfb9868d6c47e0e9ab74c Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 14 May 2025 15:45:15 +0200 Subject: [PATCH] boot: Use DEFINE_TRIVIAL_CLEANUP_FUNC() to define strv_freep() --- src/boot/util.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/boot/util.h b/src/boot/util.h index 2145b6e2589..6b227680b45 100644 --- a/src/boot/util.h +++ b/src/boot/util.h @@ -162,9 +162,7 @@ bool is_ascii(const char16_t *f); char16_t **strv_free(char16_t **l); -static inline void strv_freep(char16_t ***p) { - strv_free(*p); -} +DEFINE_TRIVIAL_CLEANUP_FUNC(char16_t**, strv_free); #define _cleanup_strv_free_ _cleanup_(strv_freep) -- 2.47.3