From 8b17371b6185c9829bb21a813aadb2225ccfc4de Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sat, 22 Jun 2024 12:08:39 +0200 Subject: [PATCH] core/unit: add one assertion for u->manager --- src/core/unit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/unit.c b/src/core/unit.c index 2d750b7ef48..be29a4d9ef0 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -6088,6 +6088,7 @@ int unit_test_trigger_loaded(Unit *u) { void unit_destroy_runtime_data(Unit *u, const ExecContext *context) { assert(u); + assert(u->manager); assert(context); /* EXEC_PRESERVE_RESTART is handled via unit_release_resources()! */ -- 2.47.3