]> granicus.if.org Git - python/commit
PyPcre_expand(): Fixed two memory leaks, where a PyString_FromString()
authorBarry Warsaw <barry@python.org>
Mon, 1 Feb 1999 17:09:00 +0000 (17:09 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 1 Feb 1999 17:09:00 +0000 (17:09 +0000)
commit6aa42579be55f82141b183d547f71ce10303677a
tree40747e86ef615d6bd45d48be825be45501799133
parenta61f4ac14d764dc4f91c5a86f170a597de4c3a73
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.
Modules/pcremodule.c