summaryrefslogtreecommitdiff
path: root/src/libunixonacid/textmessage_receiver_free.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libunixonacid/textmessage_receiver_free.c')
-rw-r--r--src/libunixonacid/textmessage_receiver_free.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libunixonacid/textmessage_receiver_free.c b/src/libunixonacid/textmessage_receiver_free.c
new file mode 100644
index 0000000..037e23b
--- /dev/null
+++ b/src/libunixonacid/textmessage_receiver_free.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/stralloc.h>
+#include <skalibs/textmessage.h>
+
+void textmessage_receiver_free (textmessage_receiver_t *ts)
+{
+ stralloc_free(&ts->indata) ;
+ *ts = textmessage_receiver_zero ;
+}