summaryrefslogtreecommitdiff
path: root/src/libs6/s6lock_end.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs6/s6lock_end.c')
-rw-r--r--src/libs6/s6lock_end.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libs6/s6lock_end.c b/src/libs6/s6lock_end.c
new file mode 100644
index 0000000..c460efd
--- /dev/null
+++ b/src/libs6/s6lock_end.c
@@ -0,0 +1,14 @@
+/* ISC license. */
+
+#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, &a->list) ;
+ skaclient_end(&a->connection) ;
+ *a = s6lock_zero ;
+}