1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-09 17:03:00 +03:00

Fix mis-backport of libpq memory leak fix. Per Michael Fuhr.

This commit is contained in:
Tom Lane
2005-07-14 14:07:50 +00:00
parent 32f9bc6f7d
commit f3d95f3c7f

View 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;