aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2007-10-09 15:03:31 +0000
committerMagnus Hagander <magnus@hagander.net>2007-10-09 15:03:31 +0000
commita948f7c62ce478af2de8b39366cc10166486a85d (patch)
treeabeea83e541151c15e0ead0bc536cd8bbd8d763a /src
parent0969e9cc0e47c141a0075cdbc2a0369113d206db (diff)
downloadpostgresql-a948f7c62ce478af2de8b39366cc10166486a85d.tar.gz
postgresql-a948f7c62ce478af2de8b39366cc10166486a85d.zip
Don't try to free pgpassfile since it's a stack variable.
Martin Pitt
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq/fe-connect.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index d2a7c945a14..4a0f86cbf0f 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -8,7 +8,7 @@
*
*
* 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,
libpq_gettext("WARNING: password file \"%s\" is not a plain file\n"),
pgpassfile);
- free(pgpassfile);
return NULL;
}