From b86d44e5abc05dd13ad89cf1a4a69f32203f73e6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 18 May 2010 04:05:27 +0200 Subject: [PATCH] unit: don't gc units that are still in STUB state --- src/unit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unit.c b/src/unit.c index 1959b1b94..374d2e133 100644 --- a/src/unit.c +++ b/src/unit.c @@ -213,6 +213,9 @@ int unit_set_description(Unit *u, const char *description) { bool unit_check_gc(Unit *u) { assert(u); + if (u->meta.load_state == UNIT_STUB) + return true; + if (UNIT_VTABLE(u)->no_gc) return true; -- 2.30.2