Fix mis-backport of libpq memory leak fix. Per Michael Fuhr.
authorTom Lane <[email protected]>
Thu, 14 Jul 2005 14:07:50 +0000 (14:07 +0000)
committerTom Lane <[email protected]>
Thu, 14 Jul 2005 14:07:50 +0000 (14:07 +0000)
src/interfaces/libpq/fe-connect.c

index 312d89309281adf1b09cbbdfad64dc424baab80c..834a0958031029f514ca167850afeafbaf846dbf 100644 (file)
@@ -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;