mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
core/cgroup: first print then free
This commit is contained in:
parent
df5f6971e6
commit
81c68af03f
@ -402,8 +402,8 @@ static int unit_create_cgroups(Unit *u, CGroupControllerMask mask) {
|
||||
is_in_hash = true;
|
||||
|
||||
if (r < 0) {
|
||||
free(path);
|
||||
log_error("cgroup %s exists already: %s", path, strerror(-r));
|
||||
free(path);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user