From: Tom Lane Date: Thu, 14 Jul 2005 14:07:41 +0000 (+0000) Subject: Fix mis-backport of libpq memory leak fix. Per Michael Fuhr. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=fbcfabd775269153b6e570dcc81306fa789e077b;p=users%2Fbernd%2Fpostgres.git Fix mis-backport of libpq memory leak fix. Per Michael Fuhr. --- diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index af50cae847..ebe68c39b7 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -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) {