mirror of
https://github.com/zebrajr/postgres.git
synced 2025-12-06 12:20:15 +01:00
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)
|
||||
{
|
||||
PQfinish(rconn->conn);
|
||||
pfree(rconn);
|
||||
PQfinish(con->con);
|
||||
pfree(con);
|
||||
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_DUPLICATE_OBJECT),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user