From 9310b2e578f33e63319d0dc0c09b2497f5d20dc8 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 9 Oct 2007 15:03:30 +0000 Subject: [PATCH] Don't try to free pgpassfile since it's a stack variable. Martin Pitt --- src/interfaces/libpq/fe-connect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 2c24bf2f8c..51e312d5e0 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.323.2.3 2007/07/23 18:13:02 mha Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.323.2.4 2007/10/09 15:03:30 mha Exp $ * *------------------------------------------------------------------------- */ @@ -3129,7 +3129,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; } -- 2.50.0