From: Mike Yuan Date: Sat, 22 Jun 2024 10:08:39 +0000 (+0200) Subject: core/unit: add one assertion for u->manager X-Git-Tag: v257-rc1~860^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b17371b6185c9829bb21a813aadb2225ccfc4de;p=thirdparty%2Fsystemd.git core/unit: add one assertion for u->manager --- 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()! */