projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71dca6e
)
Fix incorrect change in dblink introduced by the previous commit
author
Itagaki Takahiro
<
[email protected]
>
Thu, 10 Jun 2010 00:42:34 +0000
(
00:42
+0000)
committer
Itagaki Takahiro
<
[email protected]
>
Thu, 10 Jun 2010 00:42:34 +0000
(
00:42
+0000)
"Fix connection leak in dblink".
contrib/dblink/dblink.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/dblink/dblink.c
b/contrib/dblink/dblink.c
index 0bea6487ec3fa17fce196c01a0d4e2dc9c4dfce0..32668828e35f7039210a84034104ec73e732e5dc 100644
(file)
--- a/
contrib/dblink/dblink.c
+++ b/
contrib/dblink/dblink.c
@@
-1981,8
+1981,8
@@
createNewConnection(const char *name, remoteConn * con)
if (found)
{
- PQfinish(
rconn->con
n);
- pfree(
rcon
n);
+ PQfinish(
con->co
n);
+ pfree(
co
n);
ereport(ERROR,
(errcode(ERRCODE_DUPLICATE_OBJECT),