]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mount: use mfree() where appropriate
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Nov 2018 11:33:21 +0000 (12:33 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Dec 2018 16:30:14 +0000 (17:30 +0100)
src/core/mount.c

index 0243f1e392fefcff8f29c0c00d2141a62665806f..ab22777c894a8bfe03ddfb42da9c2346e48b8486 100644 (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) {