summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_receiver_free.c
blob: 353797b2cf3ce262faa6f62486d73d526694a5ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ISC license. */

#include <skalibs/stralloc.h>
#include <skalibs/unixmessage.h>

void unixmessage_receiver_free (unixmessage_receiver_t *b)
{
  b->fd = -1 ;
  stralloc_free(&b->maindata) ;
  stralloc_free(&b->auxdata) ;
  b->mainlen = b->auxlen = 0 ;
}