diff --git a/src/slurmd/common/xcgroup.c b/src/slurmd/common/xcgroup.c index a86c91436aba8d4676f32b6344acbe130a3c0360..d05a28623513791cc6642b910f88483a9b9c39fa 100644 --- a/src/slurmd/common/xcgroup.c +++ b/src/slurmd/common/xcgroup.c @@ -557,7 +557,7 @@ static char *_cgroup_procs_check (xcgroup_t *cg, int check_mode) char *path = xstrdup_printf("%s/%s", cg->path, "cgroup.procs"); if (!((stat (path, &st) >= 0) && (st.st_mode & check_mode))) { xfree(path); - path = xstrdup_printf(path, "%s/%s", cg->path, "tasks"); + path = xstrdup_printf("%s/%s", cg->path, "tasks"); } return path;