mirror of
https://github.com/postgres/postgres.git
synced 2025-05-11 05:41:32 +03:00
Fixes a free() problem under FreeBSD
Fixed pointed out by: jwieck@debis.com (Jan Wieck)
This commit is contained in:
parent
7015dfef4b
commit
c487962dd7
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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);
|
conn->pgpass = strdup(tmp);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
conn->pgpass = DefaultPassword;
|
conn->pgpass = strdup(DefaultPassword);
|
||||||
|
|
||||||
if (!error)
|
if (!error)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user