From 82f873a025c05b1cc528881035ecea514a1051ff Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 5 Aug 2022 09:27:59 -0500 Subject: [PATCH] util: Allow scan_freq_set to be autodestructed --- src/util.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util.h b/src/util.h index 0b7832fb..6315198a 100644 --- a/src/util.h +++ b/src/util.h @@ -25,6 +25,7 @@ #include #include +#include #define ___PASTE(a, b) a ## b #define __PASTE(a, b) ___PASTE(a, b) @@ -124,4 +125,6 @@ bool scan_freq_set_isempty(const struct scan_freq_set *set); uint32_t *scan_freq_set_to_fixed_array(const struct scan_freq_set *set, size_t *len_out); +DEFINE_CLEANUP_FUNC(scan_freq_set_free); + #endif /* __UTIL_H */