1 2 3 4 5 6 7 8 9 10 11
#include <stdbool.h> #include <stdlib.h> #include "mbtstr/str.h" void mbt_str_free(struct mbt_str *str) { free(str->data); mbt_str_dtor(str); free(str); }