summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_receiver_free.c
blob: c23cc7788a6b85e6083c9c32e7a62fe30bc62bca (plain)
1
2
3
4
5
6
7
8
9
10
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 ;
}