summaryrefslogtreecommitdiff
path: root/src/libs6/ftrigr_end.c
blob: 9783601746ebf7f71c6b6eed7bbb6345ab9f7c20 (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/skaclient.h>
#include <s6/ftrigr.h>

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