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

Skip to content
8000

Commit 2e5a61f

Browse files
committed
Fix incorrect change in dblink introduced by the previous commit
"Fix connection leak in dblink".
1 parent 63a6014 commit 2e5a61f

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
@@ -2125,8 +2125,8 @@ createNewConnection(const char *name, remoteConn * con)
21252125

21262126
if (found)
21272127
{
2128-
PQfinish(rconn->conn);
2129-
pfree(rconn);
2128+
PQfinish(con->con);
2129+
pfree(con);
21302130

21312131
ereport(ERROR,
21322132
(errcode(ERRCODE_DUPLICATE_OBJECT),

0 commit comments

Comments
 (0)
0