diff options
-rw-r--r-- | src/core/cgroup.c | 3 | ||||
-rw-r--r-- | src/core/unit.c | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 1a079a37b3..a32b43059e 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -5266,9 +5266,6 @@ CGroupRuntime *cgroup_runtime_free(CGroupRuntime *crt) { set_free(crt->ip_bpf_custom_egress); set_free(crt->ip_bpf_custom_egress_installed); - fdset_free(crt->initial_socket_bind_link_fds); - fdset_free(crt->initial_restric_ifaces_link_fds); - free(crt->cgroup_path); return mfree(crt); diff --git a/src/core/unit.c b/src/core/unit.c index df99fff9d2..2c6a0b3e57 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -5813,7 +5813,7 @@ int unit_prepare_exec(Unit *u) { (void) unit_realize_cgroup(u); CGroupRuntime *crt = unit_get_cgroup_runtime(u); - if (crt->reset_accounting) { + if (crt && crt->reset_accounting) { (void) unit_reset_accounting(u); crt->reset_accounting = false; } |