8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f3cf8a commit 71dca6eCopy full SHA for 71dca6e
contrib/dblink/dblink.c
@@ -1980,9 +1980,14 @@ createNewConnection(const char *name, remoteConn * con)
1980
errmsg("out of memory")));
1981
1982
if (found)
1983
+ {
1984
+ PQfinish(rconn->conn);
1985
+ pfree(rconn);
1986
+
1987
ereport(ERROR,
1988
(errcode(ERRCODE_DUPLICATE_OBJECT),
1989
errmsg("duplicate connection name")));
1990
+ }
1991
1992
hentry->rcon = con;
1993
strncpy(hentry->name, name, NAMEDATALEN - 1);
0 commit comments