summaryrefslogtreecommitdiff
path: root/src/libs6/ftrigr_end.c
blob: 555053f320c6e7cafd89b2435715024dcb0314c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* ISC license. */

#include <stdint.h>
#include <skalibs/genalloc.h>
#include <skalibs/gensetdyn.h>
#include <skalibs/textclient.h>
#include <s6/ftrigr.h>

void ftrigr_end (ftrigr_ref a)
{
  gensetdyn_free(&a->data) ;
  genalloc_free(uint16_t, &a->list) ;
  textclient_end(&a->connection) ;
  *a = ftrigr_zero ;
}