1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 01:55:32 +03:00

mount: use mfree() where appropriate

This commit is contained in:
Lennart Poettering 2018-11-28 12:33:21 +01:00
parent 06e457b1a3
commit a26592cf58

View File

@ -207,11 +207,9 @@ static void mount_unwatch_control_pid(Mount *m) {
static void mount_parameters_done(MountParameters *p) { static void mount_parameters_done(MountParameters *p) {
assert(p); assert(p);
free(p->what); p->what = mfree(p->what);
free(p->options); p->options = mfree(p->options);
free(p->fstype); p->fstype = mfree(p->fstype);
p->what = p->options = p->fstype = NULL;
} }
static void mount_done(Unit *u) { static void mount_done(Unit *u) {