From: Tom Lane Date: Thu, 14 Jul 2005 14:07:50 +0000 (+0000) Subject: Fix mis-backport of libpq memory leak fix. Per Michael Fuhr. X-Git-Tag: REL7_3_11~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3d95f3c7faf0a0da1e5874dda3e6cab1db1bee5;p=postgresql 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 4463db5c22..0bdb55e1ea 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -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;