diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-17 22:00:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-17 22:00:28 +0000 |
commit | f7f8873d351a315565b17de9ddf2d7b61a14ccbd (patch) | |
tree | 905b4ad3a8977b9de19b4d3bda18da4b56b63947 | |
parent | 34c0203640fc2b5c600ae5b85f16975a741a2b3c (diff) |
FILE * leak
-rw-r--r-- | usr.sbin/authpf/authpf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c index 94ca33abccb..1c648860cc8 100644 --- a/usr.sbin/authpf/authpf.c +++ b/usr.sbin/authpf/authpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authpf.c,v 1.97 2006/03/14 21:45:14 beck Exp $ */ +/* $OpenBSD: authpf.c,v 1.98 2006/03/17 22:00:27 deraadt Exp $ */ /* * Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org). @@ -556,9 +556,11 @@ check_luser(char *luserdir, char *luser) while (fputs(tmp, stdout) != EOF && !feof(f)) { if (fgets(tmp, sizeof(tmp), f) == NULL) { fflush(stdout); + fclose(f); return (0); } } + fclose(f); } fflush(stdout); return (0); |