From: Daan De Meyer Date: Wed, 14 May 2025 13:45:15 +0000 (+0200) Subject: boot: Use DEFINE_TRIVIAL_CLEANUP_FUNC() to define strv_freep() X-Git-Tag: v258-rc1~623^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b23c1cf55ed978b0d82bfb9868d6c47e0e9ab74c;p=thirdparty%2Fsystemd.git boot: Use DEFINE_TRIVIAL_CLEANUP_FUNC() to define strv_freep() --- 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)