Fix incorrect change in dblink introduced by the previous commit
"Fix connection leak in dblink".
This commit is contained in:
parent
71dca6e000
commit
6742c60153
@ -1981,8 +1981,8 @@ createNewConnection(const char *name, remoteConn * con)
|
|||||||
|
|
||||||
if (found)
|
if (found)
|
||||||
{
|
{
|
||||||
PQfinish(rconn->conn);
|
PQfinish(con->con);
|
||||||
pfree(rconn);
|
pfree(con);
|
||||||
|
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_DUPLICATE_OBJECT),
|
(errcode(ERRCODE_DUPLICATE_OBJECT),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user