Update of /cvsroot/pypgsql/pypgsql
In directory usw-pr-cvs1:/tmp/cvs-serv516
Modified Files:
pgresult.c
Log Message:
26OCT2001 bga [Bug #474771] Plugged a memory leak in the PgResult_New
function. An object for the value of PGcmdStatus was being
created twice, leaving an extra copy around to consume memory.
Index: pgresult.c
===================================================================
RCS file: /cvsroot/pypgsql/pypgsql/pgresult.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** pgresult.c 2001/10/13 20:40:35 1.15
--- pgresult.c 2001/10/26 06:05:52 1.16
***************
*** 29,32 ****
--- 29,36 ----
| Date Ini Description |
| --------- --- ------------------------------------------------------- |
+ | 26OCT2001 bga [Bug #474771] Found and plugged a memory leak in the |
+ | PgResult_New() function. An object for the value of |
+ | PGcmdStatus was being created twice, leaving an extra |
+ | copy around to consume memory. |
| 13OCT2001 bga Added support for the pickling of pyPgSQL objects. |
| 30SEP2001 bga Change error message returned by PgResult_ntuple_check |
***************
*** 128,132 ****
self->nfields = Py_BuildValue("i", PQnfields(res));
self->btuples = Py_BuildValue("i", PQbinaryTuples(res));
- self->cstatus = Py_BuildValue("s", PQcmdStatus(res));
if (*(m = PQcmdStatus(res)) == (char)0)
{
--- 132,135 ----
|