]> granicus.if.org Git - postgresql/commitdiff
Fix mis-backport of libpq memory leak fix. Per Michael Fuhr.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 14 Jul 2005 14:07:41 +0000 (14:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 14 Jul 2005 14:07:41 +0000 (14:07 +0000)
src/interfaces/libpq/fe-connect.c

index 14c25c71fbe5a562b25ffb3a66ce7631c3ce8db2..4871ab96fe1abb5925a5acb2f2d7b4c4841cda82 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.263.2.3 2005/07/13 15:26:16 tgl Exp $
+ *       $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.263.2.4 2005/07/14 14:07:41 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -2116,7 +2116,7 @@ closePGconn(PGconn *conn)
        conn->addr_cur = NULL;
        if (conn->notifyList)
                DLFreeList(conn->notifyList);
-       conn->notifyList = NULL;
+       conn->notifyList = DLNewList();
        pstatus = conn->pstatus;
        while (pstatus != NULL)
        {