1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Fix incorrect change in dblink introduced by the previous commit

"Fix connection leak in dblink".
This commit is contained in:
Itagaki Takahiro
2010-06-10 00:42:34 +00:00
parent 71dca6e000
commit 6742c60153

View File

@ -1981,8 +1981,8 @@ createNewConnection(const char *name, remoteConn * con)
if (found)
{
PQfinish(rconn->conn);
pfree(rconn);
PQfinish(con->con);
pfree(con);
ereport(ERROR,
(errcode(ERRCODE_DUPLICATE_OBJECT),