diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c index 771308848a..6058553aac 100644 --- a/src/core/exec-invoke.c +++ b/src/core/exec-invoke.c @@ -5552,7 +5552,7 @@ int exec_invoke( * memory_pressure_path != NULL in the conditional below. */ if (memory_pressure_path && needs_sandboxing && exec_needs_cgroup_namespace(context)) { memory_pressure_path = mfree(memory_pressure_path); - r = cg_get_path("memory", "", "memory.pressure", &memory_pressure_path); + r = cg_get_path("memory", "/", "memory.pressure", &memory_pressure_path); if (r < 0) { *exit_status = EXIT_MEMORY; return log_oom();