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

Commit20c3851

Browse files
committed
Don't try to free pgpassfile since it's a stack variable.
Martin Pitt
1 parent535b078 commit20c3851

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.351 2007/07/23 17:52:06 mha Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.352 2007/10/09 15:03:27 mha Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -3723,7 +3723,6 @@ PasswordFromFile(char *hostname, char *port, char *dbname, char *username)
37233723
fprintf(stderr,
37243724
libpq_gettext("WARNING: password file \"%s\" is not a plain file\n"),
37253725
pgpassfile);
3726-
free(pgpassfile);
37273726
returnNULL;
37283727
}
37293728

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp