From f3d95f3c7faf0a0da1e5874dda3e6cab1db1bee5 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 14 Jul 2005 14:07:50 +0000 Subject: [PATCH] Fix mis-backport of libpq memory leak fix. Per Michael Fuhr. --- src/interfaces/libpq/fe-connect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.50.0