chiark / gitweb /
core: unref slice ref after use
authorLennart Poettering <lennart@poettering.net>
Tue, 18 Jun 2013 00:07:35 +0000 (02:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 18 Jun 2013 00:07:35 +0000 (02:07 +0200)
src/core/unit.c

index b97158f..90ff43d 100644 (file)
@@ -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);