From 1d113f7a3f5c3681bf4ec928abb89fd9ac9fa14e Mon Sep 17 00:00:00 2001 From: mpech <> Date: Tue, 19 Feb 2002 19:06:05 +0000 Subject: [PATCH] login_close() should avoid memory leak. millert@ ok --- src/lib/libutil/check_expire.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/libutil/check_expire.c b/src/lib/libutil/check_expire.c index 4f63c09c..e782d16a 100644 --- a/src/lib/libutil/check_expire.c +++ b/src/lib/libutil/check_expire.c @@ -1,4 +1,4 @@ -/* $OpenBSD: check_expire.c,v 1.4 2002/02/16 21:27:29 millert Exp $ */ +/* $OpenBSD: check_expire.c,v 1.5 2002/02/19 19:06:05 mpech Exp $ */ /* * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. @@ -102,6 +102,7 @@ login_check_expire(back, pwd, class, lastchance) warn = 0; } } + login_close(lc); /* * If their password is dead (expired longer than