Compare commits

..

1 Commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek b19b0dc170
Merge 0e54562082 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;
}
_cleanup_free_ char *path = strdup(e + 1);
char *path = strdup(e + 1);
if (!path)
return -ENOMEM;
@ -812,7 +812,7 @@ int cg_pid_get_path(const char *controller, pid_t pid, char **ret_path) {
if (e)
*e = 0;
*ret_path = TAKE_PTR(path);
*ret_path = path;
return 0;
}
}