[Python-checkins] CVS: python/dist/src/Modules pcremodule.c

Barry A. Warsaw bwarsaw@cnri.reston.va.us
Mon, 1 Feb 1999 12:09:02 -0500 (EST)

Update of /projects/cvsroot/python/dist/src/Modules
In directory anthem:/projects/python/develop/bwarsaw/pristine/Modules

Modified Files:
Log Message:
PyPcre_expand(): Fixed two memory leaks, where a PyString_FromString() 
was appended to a list.  Lists are reference count neutral, so the
string must be DECREF'd.  Also added some checks for the return value
of PyList_Append().

Note: there are still some memory problems reported by Purify (I get
two Array Bounds Reads still and an Unitialized Memory Read).  Also,
in scanning the code, there appears to be some potential problems
where return values aren't checked.  To much to attack now though.