summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/mount/mount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/mount/mount.c b/utils/mount/mount.c
index 751fbb9..31e1969 100644
--- a/utils/mount/mount.c
+++ b/utils/mount/mount.c
@@ -237,6 +237,7 @@ static int add_mtab(char *spec, char *mount_point, char *fstype,
if (flags & MS_REMOUNT) {
update_mtab(ment.mnt_dir, &ment);
+ free(ment.mnt_opts);
return EX_SUCCESS;
}
@@ -267,6 +268,7 @@ fail_close:
endmntent(mtab);
fail_unlock:
unlock_mtab();
+ free(ment.mnt_opts);
return result;
}