summaryrefslogtreecommitdiff
path: root/src/libs6/s6lock_end.c
blob: 86112891d2bc1a39161d8682e386cc6fb8f48eaa (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/lock.h>

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