summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1998-12-16 04:54:08 +0000
committerimp <imp@FreeBSD.org>1998-12-16 04:54:08 +0000
commita3877a7dd24931c4d53d1120effa028c8730a0ac (patch)
treeefe9361db85e4af5579c15b294850a18ad04b8f6 /usr.sbin/mtree
parent3d6d60242a7d4ccad87b4cb97889793dc12883af (diff)
downloadFreeBSD-src-a3877a7dd24931c4d53d1120effa028c8730a0ac.zip
FreeBSD-src-a3877a7dd24931c4d53d1120effa028c8730a0ac.tar.gz
Free memory from getmode.
Obtained from: OpenBSD
Diffstat (limited to 'usr.sbin/mtree')
-rw-r--r--usr.sbin/mtree/spec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/mtree/spec.c b/usr.sbin/mtree/spec.c
index 77f54b1..7d7906b 100644
--- a/usr.sbin/mtree/spec.c
+++ b/usr.sbin/mtree/spec.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)spec.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: spec.c,v 1.7 1997/10/01 06:30:02 charnier Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -212,6 +212,7 @@ set(t, ip)
errx(1, "line %d: invalid file mode %s",
lineno, val);
ip->st_mode = getmode(m, 0);
+ free(m);
break;
case F_NLINK:
ip->st_nlink = strtoul(val, &ep, 10);
OpenPOWER on IntegriCloud