cpython/Modules
Tim Peters c9d78aa470 Years in the making.
objimpl.h, pymem.h:  Stop mapping PyMem_{Del, DEL} and PyMem_{Free, FREE}
to PyObject_{Free, FREE} in a release build.  They're aliases for the
system free() now.

_subprocess.c/sp_handle_dealloc():  Since the memory was originally
obtained via PyObject_NEW, it must be released via PyObject_FREE (or
_DEL).

pythonrun.c, tokenizer.c, parsermodule.c:  I lost count of the number of
PyObject vs PyMem mismatches in these -- it's like the specific
function called at each site was picked at random, sometimes even with
memory obtained via PyMem getting released via PyObject.  Changed most
to use PyObject uniformly, since the blobs allocated are predictably
small in most cases, and obmalloc is generally faster than system
mallocs then.

If extension modules in real life prove as sloppy as Python's front
end, we'll have to revert the objimpl.h + pymem.h part of this patch.
Note that no problems will show up in a debug build (all calls still go
thru obmalloc then). Problems will show up only in a release build, most
likely segfaults.
2006-03-26 23:27:58 +00:00
..
_ctypes Fix some int/Py_ssize_t issues which led to compiler warnings 2006-03-22 13:21:16 +00:00
cjkcodecs Utilize %zd for Py_ssize_t formatting instead of casting to long. 2006-03-26 06:53:37 +00:00
expat Remove two instances of trailing commas. Resolves patch #1209781. 2006-02-19 15:28:47 +00:00
zlib Remove unneeded directories. 2006-01-03 06:48:38 +00:00
_bisectmodule.c More unconsting. 2006-02-27 17:20:04 +00:00
_bsddb.c Fix another leak in bsddb, and avoid use of uninitialized value -- funny how 2006-03-12 00:01:38 +00:00
_codecsmodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
_csv.c More unconsting. 2006-02-27 17:20:04 +00:00
_curses_panel.c Coverity-found bug: don't use temp->next *before* checking it for NULL. Also 2006-03-07 13:38:14 +00:00
_cursesmodule.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
_elementtree.c merged with cElementTree development trunk (1.0.6 snapshot): 2006-03-12 21:06:35 +00:00
_hashopenssl.c Properly fix Py_SAFE_DOWNCAST-triggerd bugs. 2006-03-02 05:05:17 +00:00
_heapqmodule.c Also make _heapq.nlargest() use Py_ssize_t instead of ints, to iter over 2006-02-16 19:21:53 +00:00
_hotshot.c _hotshot hotshot_profiler(): If write_header() returned 2006-03-07 23:53:32 +00:00
_localemodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
_lsprof.c Thanks to Coverity, these were all reported by their Prevent tool. 2006-03-07 04:48:24 +00:00
_randommodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_sre.c Rename sre.py -> re.py 2006-03-16 06:30:02 +00:00
_ssl.c Try to improve name based on discussion on python-checkins with Jim Jewett 2006-02-13 00:35:21 +00:00
_testcapimodule.c Try to repair at least one segfault on the Mac buildbot, 2006-03-21 03:58:41 +00:00
_tkinter.c Coverity found refleak: need to free 'v' after calling Tkinter_Error(). 2006-03-07 14:04:31 +00:00
_weakref.c Make weak references subclassable: 2004-07-02 18:57:45 +00:00
addrinfo.h Add comments at end of every #endif and fix ones already there when for closing 2004-07-10 19:30:39 +00:00
almodule.c Fix some missing checks after PyTuple_New, PyList_New, PyDict_New 2006-03-17 19:03:25 +00:00
ar_beos Moved BeOS/ar-fake and BeOS/linkmodule to Modules/ar_beos and 2001-02-16 03:24:50 +00:00
arraymodule.c Checking in the code for PEP 357. 2006-03-07 18:50:55 +00:00
audioop.c Make some functions static, reformat function decl to be consistent and check for error from PyModule_GetDict() 2006-03-20 06:34:06 +00:00
binascii.c Use Py_ssize_t for arithmetic on Py_ssize_t's, instead of unsigned ints. 2006-03-01 23:10:05 +00:00
bsddbmodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
bz2module.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
ccpython.cc Patch and new file by Geoff Furnish for C++ compilation. 1999-12-16 17:52:08 +00:00
cdmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
cgen.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
cgensupport.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
cgensupport.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
clmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
cmathmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
collectionsmodule.c - Patch 1433928: 2006-02-25 22:38:04 +00:00
config.c.in Create _ast module. 2006-02-27 15:23:19 +00:00
cPickle.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
cryptmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
cStringIO.c SF patch #1359365: cStringIO.StringIO.isatty() will raise a ValueError 2006-03-15 22:13:13 +00:00
cstubs REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
datetimemodule.c Fix problem spotted by Coverity that occurs if tzinfo.tzname().replace() 2006-03-20 01:58:39 +00:00
dbmmodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
dlmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
errnomodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fcntlmodule.c Explain why we use the unsigned int format for a signed int variable. 2006-03-02 17:58:27 +00:00
flmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fmmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fpectlmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fpetestmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
functionalmodule.c Fix typo in functional module 2006-02-21 17:49:57 +00:00
gc_weakref.txt SF 1055820: weakref callback vs gc vs threads 2004-10-30 23:09:22 +00:00
gcmodule.c Fix some missing checks after PyTuple_New, PyList_New, PyDict_New 2006-03-17 19:03:25 +00:00
gdbmmodule.c Fix gcc (4.0.x) warning about use of uninitialized variable. 2006-03-01 22:54:36 +00:00
getaddrinfo.c SF #784031: Byte-order bug in socket-module getaddrinfo.c 2003-08-17 21:28:39 +00:00
getbuildinfo.c Generate getbuildinfo.o each time the linker is invoked; 2006-01-18 09:13:51 +00:00
getnameinfo.c Remove INET6 define. Use ENABLE_IPV6 instead. 2001-12-02 10:15:37 +00:00
getpath.c Patch #931938: prevent setting sys.prefix to "" 2006-02-20 17:37:36 +00:00
glmodule.c SF patch #577031, remove PyArg_NoArgs() since it's deprecated 2002-07-28 15:23:23 +00:00
grpmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
imageop.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
imgfile.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
itertoolsmodule.c More unconsting. 2006-02-27 17:20:04 +00:00
ld_so_aix SF Bug # 941346, AIX shared library fix 2005-10-03 03:57:09 +00:00
ld_so_beos Remove a hard coded Python version, and a now incorrect relative path. Closes 2001-02-16 03:27:35 +00:00
linuxaudiodev.c Rework channelnumber/samplesize detetion code's output variables a bit to 2006-03-01 22:45:36 +00:00
main.c Implement PEP 338 which has been marked as accepted by GvR 2006-03-15 11:00:26 +00:00
makesetup [Patch #536769] Add -Xcompiler flag for adding arguments and switches for 2002-03-29 18:00:19 +00:00
makexp_aix - Changes donated by Elemental Security to make it work on AIX 5.3 2005-09-14 18:09:42 +00:00
mathmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
md5.h Issue an explicit error when we can't find an appropriate type for 2002-05-29 14:00:22 +00:00
md5c.c Patch #977074: Move Encode/Decode to the top so gcc can inline them. 2004-08-03 13:08:07 +00:00
md5module.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
mmapmodule.c Checking in the code for PEP 357. 2006-03-07 18:50:55 +00:00
nismodule.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
operator.c Checking in the code for PEP 357. 2006-03-07 18:50:55 +00:00
ossaudiodev.c Fix some missing checks after PyTuple_New, PyList_New, PyDict_New 2006-03-17 19:03:25 +00:00
parsermodule.c Years in the making. 2006-03-26 23:27:58 +00:00
posixmodule.c Try to fix broken compile on openbsd. 2006-03-26 00:29:48 +00:00
puremodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
pwdmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
pyexpat.c Fix some missing checks after PyTuple_New, PyList_New, PyDict_New 2006-03-17 19:03:25 +00:00
python.c Apparently FreeBSD enables some HW floating-point exceptions by default. 2002-12-28 21:56:08 +00:00
readline.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
resource.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
rgbimgmodule.c Add deprecation warning to modules deprecated since 2000. 2006-02-17 11:29:04 +00:00
rotatingtree.c randombits(): Stop compiler warning about mixing 2006-02-15 03:01:30 +00:00
rotatingtree.h Added the cProfile module. 2006-02-08 12:53:56 +00:00
selectmodule.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
Setup.config.in Patch to make _codecs a builtin module. This is necessary since 2002-12-12 17:37:50 +00:00
Setup.dist [ 959576 ] Can't build Python on POSIX w/o $HOME 2005-12-27 17:37:07 +00:00
sgimodule.c Convert more METH_OLDARGS & PyArg_Parse() 2002-04-02 18:26:33 +00:00
sha256module.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
sha512module.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
shamodule.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
signalmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
socketmodule.c RFE #567972: Socket objects' family, type and proto properties are 2006-03-17 19:17:34 +00:00
socketmodule.h Get socketmodule to build after adding netlink support. 2006-01-16 04:31:40 +00:00
spwdmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
sre.h Add weakref support to sockets and re pattern objects. 2004-05-31 03:09:25 +00:00
sre_constants.h Implemented non-recursive SRE matching. 2003-10-17 22:13:16 +00:00
stropmodule.c Use macro versions instead of function versions when we already know the type. 2006-03-20 01:53:23 +00:00
structmodule.c struct_pack(): Repair new assert-fail crash in 2006-02-16 20:19:46 +00:00
sunaudiodev.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
svmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
symtablemodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
syslogmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
termios.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
testcapi_long.h Fix error in comment, and in test_long_api and test_longlong_api remove 2001-06-16 08:10:13 +00:00
threadmodule.c Um, I thought I'd already checked this in. 2006-03-10 02:28:35 +00:00
timemodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
timing.h
timingmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
tkappinit.c Remove warning about implicit declaration of strcmp() 2004-06-13 20:29:55 +00:00
unicodedata.c Adjust CJK Ideograph range to Unicode 4.1. 2006-03-11 12:16:23 +00:00
unicodedata_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
unicodename_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
xxmodule.c Move test code out of xxmodule and into _testcapimodule.c where it belongs. 2006-03-15 05:43:10 +00:00
xxsubtype.c add some example docstrings using PyDoc_STR 2002-08-14 01:45:37 +00:00
yuv.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
yuvconvert.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
zipimport.c SF #1444030: Fix several potential defects found by Coverity. 2006-03-07 15:39:21 +00:00
zlibmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00