1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Fix memory leak from Tom Lane.

This commit is contained in:
Bruce Momjian
1998-09-20 04:51:12 +00:00
parent 3ac9688ae8
commit aa158a746c
2 changed files with 39 additions and 8 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.82 1998/09/18 16:46:05 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.83 1998/09/20 04:51:10 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -1316,9 +1316,8 @@ conninfo_parse(const char *conninfo, char *errorMessage)
*/
if (!strcmp(option->keyword, "user"))
{
tmp = fe_getauthname(errortmp);
if (tmp)
option->val = strdup(tmp);
option->val = fe_getauthname(errortmp);
continue;
}
/* ----------
@ -1330,6 +1329,7 @@ conninfo_parse(const char *conninfo, char *errorMessage)
tmp = conninfo_getval("user");
if (tmp)
option->val = strdup(tmp);
continue;
}
}