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 a new issue