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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy