boot: Use DEFINE_TRIVIAL_CLEANUP_FUNC() to define strv_freep()

This commit is contained in:
Daan De Meyer
2025-05-14 16:22:54 +02:00
parent 686bbf1e7f
commit b23c1cf55e
+1 -3
View File
@@ -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)