]> 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:50 +0000 (14:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 14 Jul 2005 14:07:50 +0000 (14:07 +0000)
src/interfaces/libpq/fe-connect.c

index 4463db5c22656cc1fe9018da173a5eea434d45af..0bdb55e1eae3e5b930cfec508718ced065189835 100644 (file)
@@ -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;