From: Magnus Hagander Date: Tue, 9 Oct 2007 15:03:31 +0000 (+0000) Subject: Don't try to free pgpassfile since it's a stack variable. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=33dfe806c0d19b34ee1a533219005b07f68701a3;p=users%2Fbernd%2Fpostgres.git Don't try to free pgpassfile since it's a stack variable. Martin Pitt --- diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index a50bb33a5b..4e7e127978 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -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; }