diff options
Diffstat (limited to 'bittorrent/mbtstr/src/free.c')
| -rw-r--r-- | bittorrent/mbtstr/src/free.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bittorrent/mbtstr/src/free.c b/bittorrent/mbtstr/src/free.c new file mode 100644 index 0000000..fccf803 --- /dev/null +++ b/bittorrent/mbtstr/src/free.c @@ -0,0 +1,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); +} |
