Skip to content
Snippets Groups Projects
Commit 565ccbe2 authored by Danny Auble's avatar Danny Auble
Browse files

Fix bad xstrdup_printf

parent 469a4c92
No related branches found
No related tags found
No related merge requests found
...@@ -557,7 +557,7 @@ static char *_cgroup_procs_check (xcgroup_t *cg, int check_mode) ...@@ -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"); char *path = xstrdup_printf("%s/%s", cg->path, "cgroup.procs");
if (!((stat (path, &st) >= 0) && (st.st_mode & check_mode))) { if (!((stat (path, &st) >= 0) && (st.st_mode & check_mode))) {
xfree(path); xfree(path);
path = xstrdup_printf(path, "%s/%s", cg->path, "tasks"); path = xstrdup_printf("%s/%s", cg->path, "tasks");
} }
return path; return path;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment