[Backport to 2-5maint of r52147 | andrew.kuchling ; the buildbots seem OK
commitb337a3b0ed69d6fb4092fe1b796fd87025fb2915
authorandrew.kuchling <andrew.kuchling@6015fed2-1504-0410-9fe1-9d1591cc4771>
Thu, 5 Oct 2006 17:26:33 +0000 (5 17:26 +0000)
committerandrew.kuchling <andrew.kuchling@6015fed2-1504-0410-9fe1-9d1591cc4771>
Thu, 5 Oct 2006 17:26:33 +0000 (5 17:26 +0000)
treeae5787f68c1e78c54687be7e1d0f507b1815aae8
parentdacd823e317c472d9b3f954a9022546aae2b113b
[Backport to 2-5maint of r52147 | andrew.kuchling ; the buildbots seem OK
 with this change.]

Cause a PyObject_Malloc() failure to trigger a MemoryError, and then
add 'if (PyErr_Occurred())' checks to various places so that NULL is
returned properly.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@52164 6015fed2-1504-0410-9fe1-9d1591cc4771
Misc/NEWS
Modules/_sre.c