summaryrefslogtreecommitdiff
path: root/bin/mkdir/mkdir.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-09-26 09:04:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-09-26 09:04:44 +0000
commitb1e80105121cbb6a86c0850c2e98f44b1ef5a5a6 (patch)
tree68cb88a7a4c81143cee014e66791fbd861718fb4 /bin/mkdir/mkdir.c
parent3ea20cc260f702a5275210fe31883b72721f9888 (diff)
more setmode() leaks -- kill 'em all
Diffstat (limited to 'bin/mkdir/mkdir.c')
-rw-r--r--bin/mkdir/mkdir.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/mkdir/mkdir.c b/bin/mkdir/mkdir.c
index 55a63380441..01d0cbc4e31 100644
--- a/bin/mkdir/mkdir.c
+++ b/bin/mkdir/mkdir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkdir.c,v 1.7 1998/01/25 21:54:49 niklas Exp $ */
+/* $OpenBSD: mkdir.c,v 1.8 1998/09/26 09:04:43 deraadt Exp $ */
/* $NetBSD: mkdir.c,v 1.14 1995/06/25 21:59:21 mycroft Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mkdir.c 8.2 (Berkeley) 1/25/94";
#else
-static char rcsid[] = "$OpenBSD: mkdir.c,v 1.7 1998/01/25 21:54:49 niklas Exp $";
+static char rcsid[] = "$OpenBSD: mkdir.c,v 1.8 1998/09/26 09:04:43 deraadt Exp $";
#endif
#endif /* not lint */
@@ -92,6 +92,7 @@ main(argc, argv)
if ((set = setmode(optarg)) == NULL)
errx(1, "invalid file mode: %s", optarg);
mode = getmode(set, S_IRWXU | S_IRWXG | S_IRWXO);
+ free(set);
break;
default:
usage();