Back-patch fix for password checker's file descriptor leak.
authorTom Lane <[email protected]>
Wed, 1 Dec 1999 15:30:46 +0000 (15:30 +0000)
committerTom Lane <[email protected]>
Wed, 1 Dec 1999 15:30:46 +0000 (15:30 +0000)
src/backend/libpq/password.c

index 98c05d3074901da71aa13deca04dad27d38db03e..5fbbe191067b83e353a3ec20ba21d895646ac69c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: password.c,v 1.21 1999/05/25 16:09:00 momjian Exp $
+ * $Id: password.c,v 1.21.2.1 1999/12/01 15:30:46 tgl Exp $
  *
  */
 
@@ -91,6 +91,8 @@ verify_password(char *auth_arg, char *user, char *password)
        }
    }
 
+   FreeFile(pw_file);
+
    snprintf(PQerrormsg, ERROR_MSG_LENGTH,
             "verify_password: user '%s' not found in password file.\n",
             user);