summaryrefslogtreecommitdiff
path: root/usr.sbin/amd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-24 07:48:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-24 07:48:41 +0000
commit734f2c9cc87b092301aeb95a554e4c8bed238cd1 (patch)
treed9dd79036c2239c67344fa473641741a23720c70 /usr.sbin/amd
parent4ffe3be467868fc773b57148fa50020993eb2e3f (diff)
delay free of mf_mount until after last use; tegge@idt.unit.no
Diffstat (limited to 'usr.sbin/amd')
-rw-r--r--usr.sbin/amd/amd/mntfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/amd/amd/mntfs.c b/usr.sbin/amd/amd/mntfs.c
index 748c5397476..3c110ed39a9 100644
--- a/usr.sbin/amd/amd/mntfs.c
+++ b/usr.sbin/amd/amd/mntfs.c
@@ -38,7 +38,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)mntfs.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: mntfs.c,v 1.1 1995/10/18 08:47:10 deraadt Exp $";
+static char *rcsid = "$Id: mntfs.c,v 1.2 1997/06/24 07:48:40 deraadt Exp $";
#endif /* not lint */
@@ -234,7 +234,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);
@@ -246,6 +245,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