Compare commits

..

1 Commits

Author SHA1 Message Date
Yu Watanabe 9470b8902f
Merge ec6a9b2e03 into 2e5b0412f9 2024-11-21 00:11:57 +00:00
1 changed files with 2 additions and 2 deletions

View File

@ -799,7 +799,7 @@ int cg_pid_get_path(const char *controller, pid_t pid, char **ret_path) {
continue; continue;
} }
_cleanup_free_ char *path = strdup(e + 1); char *path = strdup(e + 1);
if (!path) if (!path)
return -ENOMEM; return -ENOMEM;
@ -812,7 +812,7 @@ int cg_pid_get_path(const char *controller, pid_t pid, char **ret_path) {
if (e) if (e)
*e = 0; *e = 0;
*ret_path = TAKE_PTR(path); *ret_path = path;
return 0; return 0;
} }
} }