summaryrefslogtreecommitdiff
path: root/src/core/unit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/unit.c')
-rw-r--r--src/core/unit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index b97158ff06..90ff43da66 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -416,6 +416,8 @@ void unit_free(Unit *u) {
condition_free_list(u->conditions);
+ unit_ref_unset(&u->slice);
+
while (u->refs)
unit_ref_unset(u->refs);