summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
51a4d23)
The add_mtab() function in utils/mount/mount.c calls fix_opts_string() to
construct an /etc/mtab entry, but never frees the result.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
if (flags & MS_REMOUNT) {
update_mtab(ment.mnt_dir, &ment);
if (flags & MS_REMOUNT) {
update_mtab(ment.mnt_dir, &ment);
endmntent(mtab);
fail_unlock:
unlock_mtab();
endmntent(mtab);
fail_unlock:
unlock_mtab();