diff options
Diffstat (limited to 'src/libunixonacid/unixmessage_receiver_free.c')
-rw-r--r-- | src/libunixonacid/unixmessage_receiver_free.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libunixonacid/unixmessage_receiver_free.c b/src/libunixonacid/unixmessage_receiver_free.c new file mode 100644 index 0000000..c23cc77 --- /dev/null +++ b/src/libunixonacid/unixmessage_receiver_free.c @@ -0,0 +1,11 @@ +/* ISC license. */ + +#include <skalibs/stralloc.h> +#include <skalibs/unixmessage.h> + +void unixmessage_receiver_free (unixmessage_receiver_t *b) +{ + stralloc_free(&b->data) ; + b->mainb.fd = -1 ; + b->mainlen = b->auxlen = b->auxw = 0 ; +} |