diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-26 09:04:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-26 09:04:44 +0000 |
commit | b1e80105121cbb6a86c0850c2e98f44b1ef5a5a6 (patch) | |
tree | 68cb88a7a4c81143cee014e66791fbd861718fb4 /usr.bin/find/function.c | |
parent | 3ea20cc260f702a5275210fe31883b72721f9888 (diff) |
more setmode() leaks -- kill 'em all
Diffstat (limited to 'usr.bin/find/function.c')
-rw-r--r-- | usr.bin/find/function.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index f1f635c4bee..d7f4c6bf4f3 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -1,4 +1,4 @@ -/* $OpenBSD: function.c,v 1.11 1997/11/13 08:30:33 deraadt Exp $ */ +/* $OpenBSD: function.c,v 1.12 1998/09/26 09:04:43 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -38,7 +38,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)function.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$OpenBSD: function.c,v 1.11 1997/11/13 08:30:33 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: function.c,v 1.12 1998/09/26 09:04:43 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -1035,6 +1035,7 @@ c_perm(perm) err(1, "-perm: %s: illegal mode string", perm); new->m_data = getmode(set, 0); + free(set); return (new); } |