summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-07-14 14:07:50 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-07-14 14:07:50 +0000
commitf3d95f3c7faf0a0da1e5874dda3e6cab1db1bee5 (patch)
tree39c232208c27615f71d9314229416d326e415bfc /src
parent32f9bc6f7d0874aee80a9118dd9de4ce10abd5d5 (diff)
Fix mis-backport of libpq memory leak fix. Per Michael Fuhr.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq/fe-connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 4463db5c226..0bdb55e1eae 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.213.2.4 2005/07/13 15:26:25 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.213.2.5 2005/07/14 14:07:50 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1996,7 +1996,7 @@ closePGconn(PGconn *conn)
pqClearAsyncResult(conn); /* deallocate result and curTuple */
if (conn->notifyList)
DLFreeList(conn->notifyList);
- conn->notifyList = NULL;
+ conn->notifyList = DLNewList();
if (conn->lobjfuncs)
free(conn->lobjfuncs);
conn->lobjfuncs = NULL;