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:
@ -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),
|
||||||
|
Reference in New Issue
Block a user