diff --git a/src/util-stringbuf.h b/src/util-stringbuf.h index a11d7f28..e7957d27 100644 --- a/src/util-stringbuf.h +++ b/src/util-stringbuf.h @@ -28,6 +28,7 @@ #include #include "util-macros.h" +#include "util-mem.h" struct stringbuf { char *data; @@ -74,6 +75,8 @@ stringbuf_destroy(struct stringbuf *b) free(b); } +DEFINE_DESTROY_CLEANUP_FUNC(stringbuf); + static inline char * stringbuf_steal_destroy(struct stringbuf *b) {