From 702a2d8f6a90b999cef0fbf75a226a770f863b00 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 18 Jun 2013 02:07:35 +0200 Subject: core: unref slice ref after use --- src/core/unit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf