mount: use mfree() where appropriate

This commit is contained in:
Lennart Poettering
2018-12-07 17:30:14 +01:00
parent 06e457b1a3
commit a26592cf58
+3 -5
View File
@@ -207,11 +207,9 @@ static void mount_unwatch_control_pid(Mount *m) {
static void mount_parameters_done(MountParameters *p) {
assert(p);
free(p->what);
free(p->options);
free(p->fstype);
p->what = p->options = p->fstype = NULL;
p->what = mfree(p->what);
p->options = mfree(p->options);
p->fstype = mfree(p->fstype);
}
static void mount_done(Unit *u) {