summaryrefslogtreecommitdiffstats
path: root/src/basic/cgroup-util.c
diff options
context:
space:
mode:
authorDaniel Lockyer <thisisdaniellockyer@gmail.com>2017-11-24 10:37:50 +0100
committerDaniel Lockyer <thisisdaniellockyer@gmail.com>2017-11-24 10:37:50 +0100
commit95333b2bed6c3c642062c28bb55b19196c957bb9 (patch)
treecea7adb68fa5448154bff508793a7edd2077c650 /src/basic/cgroup-util.c
parentReplace empty ternary with helper method (diff)
downloadsystemd-95333b2bed6c3c642062c28bb55b19196c957bb9.tar.xz
systemd-95333b2bed6c3c642062c28bb55b19196c957bb9.zip
Replace free and nullify by mfree
Diffstat (limited to '')
-rw-r--r--src/basic/cgroup-util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c
index ae8f2d1160..7e4670ea8c 100644
--- a/src/basic/cgroup-util.c
+++ b/src/basic/cgroup-util.c
@@ -2092,8 +2092,7 @@ int cg_get_keyed_attribute(const char *controller, const char *path, const char
for (i = 0; keys[i]; i++) {
if (!values[i]) {
for (i = 0; keys[i]; i++) {
- free(values[i]);
- values[i] = NULL;
+ values[i] = mfree(values[i]);
}
return -ENOENT;
}