Don't try to free pgpassfile since it's a stack variable.
authorMagnus Hagander <[email protected]>
Tue, 9 Oct 2007 15:03:30 +0000 (15:03 +0000)
committerMagnus Hagander <[email protected]>
Tue, 9 Oct 2007 15:03:30 +0000 (15:03 +0000)
Martin Pitt

src/interfaces/libpq/fe-connect.c

index 87fdf447a221da4cdb97b45695dcc6a1af471203..e1ff662ea1b2595363b88daa885ecf6053bc6d77 100644 (file)
@@ -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;
        }