]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fixes a free() problem under FreeBSD
authorMarc G. Fournier <scrappy@hub.org>
Fri, 23 Jan 1998 02:31:18 +0000 (02:31 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Fri, 23 Jan 1998 02:31:18 +0000 (02:31 +0000)
Fixed pointed out by: jwieck@debis.com (Jan Wieck)

src/interfaces/libpq/fe-connect.c

index e43adcc06516733cb0b9c9e87175207a27a3ca6d..37dd88d425d8968dc27376cafbc508ab692932ce 100644 (file)
@@ -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)
                {