mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
mount: use mfree() where appropriate
This commit is contained in:
parent
06e457b1a3
commit
a26592cf58
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user