File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.262 2003/10/02 19:52:44 tgl Exp $
11
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.263 2003/10/18 05:02:06 tgl Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -2003,8 +2003,11 @@ makeEmptyPGconn(void)
2003
2003
static void
2004
2004
freePGconn (PGconn * conn )
2005
2005
{
2006
+ pgParameterStatus * pstatus ;
2007
+
2006
2008
if (!conn )
2007
2009
return ;
2010
+
2008
2011
pqClearAsyncResult (conn ); /* deallocate result and curTuple */
2009
2012
if (conn -> sock >= 0 )
2010
2013
{
@@ -2037,6 +2040,14 @@ freePGconn(PGconn *conn)
2037
2040
if (conn -> notifyList )
2038
2041
DLFreeList (conn -> notifyList );
2039
2042
freeaddrinfo_all (conn -> addrlist_family , conn -> addrlist );
2043
+ pstatus = conn -> pstatus ;
2044
+ while (pstatus != NULL )
2045
+ {
2046
+ pgParameterStatus * prev = pstatus ;
2047
+
2048
+ pstatus = pstatus -> next ;
2049
+ free (prev );
2050
+ }
2040
2051
if (conn -> lobjfuncs )
2041
2052
free (conn -> lobjfuncs );
2042
2053
if (conn -> inBuffer )
You can’t perform that action at this time.
0 commit comments