diff options
author | imp <imp@FreeBSD.org> | 1998-12-16 04:54:08 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1998-12-16 04:54:08 +0000 |
commit | a3877a7dd24931c4d53d1120effa028c8730a0ac (patch) | |
tree | efe9361db85e4af5579c15b294850a18ad04b8f6 /usr.sbin/mtree | |
parent | 3d6d60242a7d4ccad87b4cb97889793dc12883af (diff) | |
download | FreeBSD-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.c | 3 |
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); |