From: Lennart Poettering Date: Wed, 28 Nov 2018 11:33:21 +0000 (+0100) Subject: mount: use mfree() where appropriate X-Git-Tag: v240~112^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a26592cf5820df27ac87317532f6dd4dc36fa64e;p=thirdparty%2Fsystemd.git mount: use mfree() where appropriate --- diff --git a/src/core/mount.c b/src/core/mount.c index 0243f1e392f..ab22777c894 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -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) {