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 af50cae847ec892f9dc50632e67f6b740e6521e3..ebe68c39b78575d7b94be99c0ad14cc554111230 100644 (file)
@@ -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)
        {