summaryrefslogtreecommitdiff
path: root/src/libs6/s6lock_end.c
blob: 74e83f1c35639e424b001acc3e77d55e7aacedf9 (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/s6lock.h>

void s6lock_end (s6lock_t *a)
{
  gensetdyn_free(&a->data) ;
  genalloc_free(uint16_t, &a->list) ;
  skaclient_end(&a->connection) ;
  *a = s6lock_zero ;
}