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/xinstall/xinstall.c | |
parent | 3ea20cc260f702a5275210fe31883b72721f9888 (diff) |
more setmode() leaks -- kill 'em all
Diffstat (limited to 'usr.bin/xinstall/xinstall.c')
-rw-r--r-- | usr.bin/xinstall/xinstall.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c index b3726d72df3..d8970123e13 100644 --- a/usr.bin/xinstall/xinstall.c +++ b/usr.bin/xinstall/xinstall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xinstall.c,v 1.15 1997/12/01 21:17:28 chuck Exp $ */ +/* $OpenBSD: xinstall.c,v 1.16 1998/09/26 09:04:43 deraadt Exp $ */ /* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93"; #endif -static char rcsid[] = "$OpenBSD: xinstall.c,v 1.15 1997/12/01 21:17:28 chuck Exp $"; +static char rcsid[] = "$OpenBSD: xinstall.c,v 1.16 1998/09/26 09:04:43 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -124,6 +124,7 @@ main(argc, argv) if (!(set = setmode(optarg))) errx(EX_USAGE, "%s: invalid file mode", optarg); mode = getmode(set, 0); + free(set); break; case 'o': owner = optarg; |