8000 Fix incorrect change in dblink introduced by the previous commit · jandas/postgres@6742c60 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6742c60

Browse files
committed
Fix incorrect change in dblink introduced by the previous commit
"Fix connection leak in dblink".
1 parent 71dca6e commit 6742c60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/dblink/dblink.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,8 +1981,8 @@ createNewConnection(const char *name, remoteConn * con)
19811981

19821982
if (found)
19831983
{
1984-
PQfinish(rconn->conn);
1985-
pfree(rconn);
1984+
PQfinish(con->con);
1985+
pfree(con);
19861986

19871987
ereport(ERROR,
19881988
(errcode(ERRCODE_DUPLICATE_OBJECT),

0 commit comments

Comments
 (0)
0