diff options
author | tegge <tegge@FreeBSD.org> | 1997-06-23 22:03:12 +0000 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 1997-06-23 22:03:12 +0000 |
commit | 8131710f9d0f72548103ed9c67c16e40341142e6 (patch) | |
tree | 33b099fb4068f9ed85162bc5c1182d46f32fa231 /usr.sbin | |
parent | 4b413d416ebecd1b40fddfa6d13042ee66d94932 (diff) | |
download | FreeBSD-src-8131710f9d0f72548103ed9c67c16e40341142e6.zip FreeBSD-src-8131710f9d0f72548103ed9c67c16e40341142e6.tar.gz |
Delay free of mf->mf_mount in uninit_mntfs until it is no longer used.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/amd/amd/mntfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/amd/amd/mntfs.c b/usr.sbin/amd/amd/mntfs.c index f1b0953..a6d3dd0 100644 --- a/usr.sbin/amd/amd/mntfs.c +++ b/usr.sbin/amd/amd/mntfs.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: mntfs.c,v 1.3 1997/02/22 16:01:35 peter Exp $ */ #ifndef lint @@ -235,7 +235,6 @@ static void uninit_mntfs(mf, rmd) mntfs *mf; int rmd; { - if (mf->mf_mount) free((voidp) mf->mf_mount); if (mf->mf_auto) free((voidp) mf->mf_auto); if (mf->mf_mopts) free((voidp) mf->mf_mopts); if (mf->mf_remopts) free((voidp) mf->mf_remopts); @@ -247,6 +246,7 @@ int rmd; */ if (rmd && (mf->mf_flags & MFF_MKMNT)) rmdirs(mf->mf_mount); + if (mf->mf_mount) free((voidp) mf->mf_mount); /* * Clean up the file server |