Commit c487962d authored by Marc G. Fournier's avatar Marc G. Fournier

Fixes a free() problem under FreeBSD

Fixed pointed out by: jwieck@debis.com (Jan Wieck)
parent 7015dfef
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.57 1998/01/17 23:17:46 scrappy Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.58 1998/01/23 02:31:18 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -400,7 +400,7 @@ PQsetdbLogin(const char *pghost, const char *pgport, const char *pgoptions, cons
conn->pgpass = strdup(tmp);
}
else
conn->pgpass = DefaultPassword;
conn->pgpass = strdup(DefaultPassword);
if (!error)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment