mirror of
https://github.com/postgres/postgres.git
synced 2025-05-18 17:41:14 +03:00
Fix mis-backport of libpq memory leak fix. Per Michael Fuhr.
This commit is contained in:
parent
57bdab7d35
commit
ecafa828c3
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.263.2.3 2005/07/13 15:26:16 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.263.2.4 2005/07/14 14:07:41 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -2116,7 +2116,7 @@ closePGconn(PGconn *conn)
|
|||||||
conn->addr_cur = NULL;
|
conn->addr_cur = NULL;
|
||||||
if (conn->notifyList)
|
if (conn->notifyList)
|
||||||
DLFreeList(conn->notifyList);
|
DLFreeList(conn->notifyList);
|
||||||
conn->notifyList = NULL;
|
conn->notifyList = DLNewList();
|
||||||
pstatus = conn->pstatus;
|
pstatus = conn->pstatus;
|
||||||
while (pstatus != NULL)
|
while (pstatus != NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user