diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-26 22:55:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-26 22:55:38 +0000 |
commit | 09f09388c319469ee9759cb9555aa16d56d4e570 (patch) | |
tree | 086e9245b4db8ff7b3268c46c9388d5cc49b641f | |
parent | 2522468846174bbc5b7d9d256d198ed8c7da26b0 (diff) |
mem leak
-rw-r--r-- | usr.bin/chpass/edit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/chpass/edit.c b/usr.bin/chpass/edit.c index 5984712c7b1..3cab39cccc1 100644 --- a/usr.bin/chpass/edit.c +++ b/usr.bin/chpass/edit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: edit.c,v 1.4 1996/07/12 02:09:48 downsj Exp $ */ +/* $OpenBSD: edit.c,v 1.5 1996/08/26 22:55:37 deraadt Exp $ */ /* $NetBSD: edit.c,v 1.6 1996/05/15 21:50:45 jtc Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)edit.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: edit.c,v 1.4 1996/07/12 02:09:48 downsj Exp $"; +static char rcsid[] = "$OpenBSD: edit.c,v 1.5 1996/08/26 22:55:37 deraadt Exp $"; #endif #endif /* not lint */ @@ -216,5 +216,6 @@ bad: (void)fclose(fp); warnx("entries too long"); return (0); } + free(p); return (pw_scan(buf, pw, (int *)NULL)); } |