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)
|
||||
{
|
||||
PQfinish(rconn->conn);
|
||||
pfree(rconn);
|
||||
PQfinish(con->con);
|
||||
pfree(con);
|
||||
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_DUPLICATE_OBJECT),
|
||||
|
Reference in New Issue
Block a user