summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander2007-10-09 15:03:27 +0000
committerMagnus Hagander2007-10-09 15:03:27 +0000
commit20c38514b47e13b5338fc89dcc3c7c222f6f814c (patch)
tree0ffc26cd3ef96dbe75f1acea0dadc4c40eda5f1b
parent535b07873d4680700a2e39857854b9f40e4dcc5d (diff)
Don't try to free pgpassfile since it's a stack variable.
Martin Pitt
-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 6747f228172..5318cbaccf0 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.351 2007/07/23 17:52:06 mha Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.352 2007/10/09 15:03:27 mha Exp $
*
*-------------------------------------------------------------------------
*/
@@ -3723,7 +3723,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;
}