summaryrefslogtreecommitdiff
path: root/src/libs6rcd/s6rc_db_free.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs6rcd/s6rc_db_free.c')
-rw-r--r--src/libs6rcd/s6rc_db_free.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libs6rcd/s6rc_db_free.c b/src/libs6rcd/s6rc_db_free.c
new file mode 100644
index 0000000..b8eb54e
--- /dev/null
+++ b/src/libs6rcd/s6rc_db_free.c
@@ -0,0 +1,18 @@
+/* ISC license. */
+
+#include <skalibs/alloc.h>
+
+#include "db.h"
+
+void s6rc_db_free (s6rc_db_t *db)
+{
+ alloc_free(db->storage) ;
+ alloc_free(db->argvs) ;
+ alloc_free(db->producers) ;
+ alloc_free(db->deptypes[0]) ;
+ alloc_free(db->deps[0]) ;
+ alloc_free(db->bundles) ;
+ alloc_free(db->externals) ;
+ alloc_free(db->oneshots) ;
+ alloc_free(db->longruns) ;
+}