summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-08-03 19:26:07 +0200
committerDaniel Mack <daniel@zonque.org>2015-08-03 19:39:42 +0200
commit0da162481886c6ded6fac514cb1e3da1c9845771 (patch)
treee44f2c36d7c43bf0191ccb99875726cd9f93a4f6 /src/basic
parent9317cbecf8b06295cd67a3db2f91a8d60788ea24 (diff)
tree-wide: convert some more mfree() candidates
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/cgroup-util.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c
index 34a3060509..6b3162a35f 100644
--- a/src/basic/cgroup-util.c
+++ b/src/basic/cgroup-util.c
@@ -826,14 +826,12 @@ int cg_install_release_agent(const char *controller, const char *agent) {
} else if (!streq(sc, agent))
return -EEXIST;
- free(fs);
- fs = NULL;
+ fs = mfree(fs);
r = cg_get_path(controller, NULL, "notify_on_release", &fs);
if (r < 0)
return r;
- free(contents);
- contents = NULL;
+ contents = mfree(contents);
r = read_one_line_file(fs, &contents);
if (r < 0)
return r;
@@ -865,8 +863,7 @@ int cg_uninstall_release_agent(const char *controller) {
if (r < 0)
return r;
- free(fs);
- fs = NULL;
+ fs = mfree(fs);
r = cg_get_path(controller, NULL, "release_agent", &fs);
if (r < 0)