summaryrefslogtreecommitdiff
path: root/src/core/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-06-18 02:07:35 +0200
committerLennart Poettering <lennart@poettering.net>2013-06-18 02:07:35 +0200
commit702a2d8f6a90b999cef0fbf75a226a770f863b00 (patch)
treed67f1d86cb4ed8cbd61332d18f18f6218e6ad64c /src/core/unit.c
parent4ec9a8a48d61266638524a7cbc2c4763a9c92e2c (diff)
core: unref slice ref after use
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);