core: gc half-created stub units

(cherry picked from commit c35fa384d0)
This commit is contained in:
Lennart Poettering
2014-03-05 00:26:50 -05:00
committed by Zbigniew Jędrzejewski-Szmek
parent d5fdaa66bf
commit 97a7eeadee
-3
View File
@@ -249,9 +249,6 @@ int unit_set_description(Unit *u, const char *description) {
bool unit_check_gc(Unit *u) {
assert(u);
if (u->load_state == UNIT_STUB)
return true;
if (UNIT_VTABLE(u)->no_gc)
return true;