8000 Back-patch fix for password checker's file descriptor leak. · rtpg/postgres@5cca0df · GitHub
[go: up one dir, main page]

Skip to content

Commit 5cca0df

Browse files
committed
Back-patch fix for password checker's file descriptor leak.
1 parent c2d8838 commit 5cca0df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/libpq/password.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 1994, Regents of the University of California
33
*
4-
* $Id: password.c,v 1.21 1999/05/25 16:09:00 momjian Exp $
4+
* $Id: password.c,v 1.21.2.1 1999/12/01 15:30:46 tgl Exp $
55
*
66
*/
77

@@ -91,6 +91,8 @@ verify_password(char *auth_arg, char *user, char *password)
9191
}
9292
}
9393

94+
FreeFile(pw_file);
95+
9496
snprintf(PQerrormsg, ERROR_MSG_LENGTH,
9597
"verify_password: user '%s' not found in password file.\n",
9698
user);

0 commit comments

Comments
 (0)
0