summaryrefslogtreecommitdiff
path: root/lib/libutil
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2002-04-10 10:11:04 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2002-04-10 10:11:04 +0000
commitbb1f2d2b3fc05734a05223039052ebb87615f22a (patch)
tree0cf9ed5a3b6ca6674ab3f7426060e56046ae3bcc /lib/libutil
parente4f0a78133a713136f686556a0eb875f03da0013 (diff)
Clean up after pw_file().
millert@ ok deraadt@ ok to commit
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/passwd.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libutil/passwd.c b/lib/libutil/passwd.c
index ceada7f4d91..b36620eba41 100644
--- a/lib/libutil/passwd.c
+++ b/lib/libutil/passwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: passwd.c,v 1.31 2002/02/16 21:27:29 millert Exp $ */
+/* $OpenBSD: passwd.c,v 1.32 2002/04/10 10:11:03 mpech Exp $ */
/*
* Copyright (c) 1987, 1993, 1994, 1995
@@ -34,7 +34,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: passwd.c,v 1.31 2002/02/16 21:27:29 millert Exp $";
+static char rcsid[] = "$OpenBSD: passwd.c,v 1.32 2002/04/10 10:11:03 mpech Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -607,8 +607,11 @@ pw_error(name, err, eval)
else
warn(NULL);
}
- if (master)
+ if (master) {
warnx("%s: unchanged", master);
+ free(master);
+ }
+
pw_abort();
exit(eval);
}