summaryrefslogtreecommitdiff
path: root/src/core/cgroup.c
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-09-13 14:31:17 +0200
committerLennart Poettering <lennart@poettering.net>2013-09-13 14:40:58 +0200
commit81c68af03f4ea9a1adc0767f7a3993a1cbe2ab3d (patch)
tree1676324158e267dd51a865ea8e1b1944917f4275 /src/core/cgroup.c
parentdf5f6971e6e15b4632884916c71daa076c8bae96 (diff)
core/cgroup: first print then free
Diffstat (limited to 'src/core/cgroup.c')
-rw-r--r--src/core/cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 244baff3d..1f41efc63 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -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;
}