summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1998-12-16 04:45:35 +0000
committerimp <imp@FreeBSD.org>1998-12-16 04:45:35 +0000
commit3b3da1d9ef22c1f360fc8bfa9f53238726c270d7 (patch)
tree800d05623ccd2c82e90b82d6925802bd282bb3b8 /bin
parent499ab4bd0d7a03de7b0513a6b6c515309f7e2f80 (diff)
downloadFreeBSD-src-3b3da1d9ef22c1f360fc8bfa9f53238726c270d7.zip
FreeBSD-src-3b3da1d9ef22c1f360fc8bfa9f53238726c270d7.tar.gz
Free memory from setmode.
Obtained from: OpenBSD
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/miscbltin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/sh/miscbltin.c b/bin/sh/miscbltin.c
index 772a3fd..4daacac 100644
--- a/bin/sh/miscbltin.c
+++ b/bin/sh/miscbltin.c
@@ -39,7 +39,7 @@
static char sccsid[] = "@(#)miscbltin.c 8.4 (Berkeley) 5/4/95";
#endif
static const char rcsid[] =
- "$Id: miscbltin.c,v 1.16 1998/08/24 10:20:36 cracauer Exp $";
+ "$Id: miscbltin.c,v 1.17 1998/08/25 09:33:34 cracauer Exp $";
#endif /* not lint */
/*
@@ -285,10 +285,11 @@ umaskcmd(argc, argv)
} else {
void *set;
if ((set = setmode (ap)) == 0)
- error("Illegal number: %s", ap);
+ error("Illegal number: %s", ap);
mask = getmode (set, ~mask & 0777);
umask(~mask & 0777);
+ free(set);
}
}
return 0;
OpenPOWER on IntegriCloud