Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit579eab9

Browse files
committed
Remove pfrees of cached pg_pwd file, per Tom Lane.
1 parentfd8b153 commit579eab9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

‎src/backend/libpq/crypt.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
1010
* Portions Copyright (c) 1994, Regents of the University of California
1111
*
12-
* $Header: /cvsroot/pgsql/src/backend/libpq/crypt.c,v 1.46 2002/04/25 00:56:36 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/libpq/crypt.c,v 1.47 2002/06/15 00:52:23 momjian Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -52,13 +52,7 @@ md5_crypt_verify(const Port *port, const char *user, const char *pgpass)
5252
}
5353

5454
if (passwd==NULL||*passwd=='\0')
55-
{
56-
if (passwd)
57-
pfree(passwd);
58-
if (valuntil)
59-
pfree(valuntil);
6055
returnSTATUS_ERROR;
61-
}
6256

6357
/* If they encrypt their password, force MD5 */
6458
if (isMD5(passwd)&&port->auth_method!=uaMD5)
@@ -140,9 +134,6 @@ md5_crypt_verify(const Port *port, const char *user, const char *pgpass)
140134
retval=STATUS_OK;
141135
}
142136

143-
pfree(passwd);
144-
if (valuntil)
145-
pfree(valuntil);
146137
if (port->auth_method==uaMD5)
147138
pfree(crypt_pwd);
148139

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp