postgres.git / summary / log / commit / refs
commit f3d95f3c7faf0a0da1e5874dda3e6cab1db1bee5
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Thu Jul 14 14:07:50 2005 +0000
First released in: 7.3.11, 7.4.9
Fix mis-backport of libpq memory leak fix. Per Michael Fuhr.
src/interfaces/libpq/fe-connect.c | 4 ++--
1 file 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;
[parent: 32f9bc6f7d08]