From f62b59b0d86025dfbab1e0b3e67d1b458f043674 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Mon, 23 Jun 1997 22:03:12 +0000 Subject: [PATCH] Delay free of mf->mf_mount in uninit_mntfs until it is no longer used. --- usr.sbin/amd/amd/mntfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/amd/amd/mntfs.c b/usr.sbin/amd/amd/mntfs.c index f1b0953fb884..a6d3dd007551 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