Don't try to free pgpassfile since it's a stack variable.

Martin Pitt
This commit is contained in:
Magnus Hagander 2007-10-09 15:03:31 +00:00
parent 0969e9cc0e
commit a948f7c62c

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.339.2.2 2007/07/23 18:13:09 mha Exp $ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.339.2.3 2007/10/09 15:03:31 mha Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -3620,7 +3620,6 @@ PasswordFromFile(char *hostname, char *port, char *dbname, char *username)
fprintf(stderr, fprintf(stderr,
libpq_gettext("WARNING: password file \"%s\" is not a plain file\n"), libpq_gettext("WARNING: password file \"%s\" is not a plain file\n"),
pgpassfile); pgpassfile);
free(pgpassfile);
return NULL; return NULL;
} }