mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Fix libpq memory leak during PQreset() --- closePGconn() was not
freeing all transient state of the PGconn object.
This commit is contained in:
parent
d53f22de86
commit
32f9bc6f7d
1 changed files with 4 additions and 1 deletions
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.213.2.3 2003/10/31 18:14:11 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.213.2.4 2005/07/13 15:26:25 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
|
@ -1994,6 +1994,9 @@ closePGconn(PGconn *conn)
|
|||
* absent */
|
||||
conn->asyncStatus = PGASYNC_IDLE;
|
||||
pqClearAsyncResult(conn); /* deallocate result and curTuple */
|
||||
if (conn->notifyList)
|
||||
DLFreeList(conn->notifyList);
|
||||
conn->notifyList = NULL;
|
||||
if (conn->lobjfuncs)
|
||||
free(conn->lobjfuncs);
|
||||
conn->lobjfuncs = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue