mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Fix mis-backport of libpq memory leak fix. Per Michael Fuhr.
This commit is contained in:
parent
32f9bc6f7d
commit
f3d95f3c7f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue