Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 20c3851

Browse files
committed
Don't try to free pgpassfile since it's a stack variable.
Martin Pitt
1 parent 535b078 commit 20c3851

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/interfaces/libpq/fe-connect.c

+1-2
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
return NULL;
37283727
}
37293728

0 commit comments

Comments
 (0)