]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Clear the mountprog variable after each mountfs() call so that mountprog
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 2 Sep 2011 17:11:59 +0000 (17:11 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 2 Sep 2011 17:11:59 +0000 (17:11 +0000)
commitd2e17ce9060fc7cf5f1bdb778ea1517aa0a8c733
tree7c1921389eca17f358e307cfc6b6662f93cbf2be
parentcdd4eea9fca2d4b2edd85e3c29413ab9b0deaa46
Clear the mountprog variable after each mountfs() call so that mountprog
options don't leak over into subsequent mounts listed in /etc/fstab.
While here, fix a memory leak in debug mode.

Reported by: rank1seeker @ gmail
Approved by: re (kib)
MFC after: 1 week
sbin/mount/mount.c