diff --git a/util.c b/util.c index 6cb4a79..32bca06 100644 --- a/util.c +++ b/util.c @@ -167,6 +167,8 @@ check_user_token (const char *authfile, { if(verbose) D (debug_file, "Match user/token as %s/%s", username, otp_id); + + fclose(opwfile); return AUTH_FOUND; } }