27 lines
753 B
Diff
27 lines
753 B
Diff
|
From fa7341808def8efb736747299374745ae059f398 Mon Sep 17 00:00:00 2001
|
||
|
From: Lukas Nykryn <lnykryn@redhat.com>
|
||
|
Date: Fri, 13 Sep 2013 14:31:17 +0200
|
||
|
Subject: [PATCH 5/7] core/cgroup: first print then free
|
||
|
|
||
|
---
|
||
|
src/core/cgroup.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
|
||
|
index 244baff..1f41efc 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;
|
||
|
}
|
||
|
|
||
|
--
|
||
|
1.8.1.4
|
||
|
|