cpython/Modules/_ctypes
Neal Norwitz 93f2ca1f85 Check the allocation of b_objects and return if there was a failure.
Also fix a few memory leaks in other failure scenarios.

It seems that if b_objects == Py_None, we will have an extra ref to
b_objects.  Add XXX comment so hopefully someone documents why the
else isn't necessary or adds it in.

Reported by Klocwork #20
2006-07-23 07:55:55 +00:00
..
darwin Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
libffi Sync the darwin/x86 port libffi with the copy in PyObjC. This fixes a number 2006-07-04 12:30:22 +00:00
libffi_arm_wince Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
libffi_msvc Fixes so that _ctypes can be compiled with the MingW compiler. 2006-07-03 08:04:05 +00:00
_ctypes.c Check the allocation of b_objects and return if there was a failure. 2006-07-23 07:55:55 +00:00
_ctypes_test.c Add pep-291 compatibility markers. 2006-06-12 20:56:48 +00:00
_ctypes_test.h Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
callbacks.c Make sure the _ctypes extension can be compiled when WITH_THREAD is 2006-07-19 09:09:32 +00:00
callproc.c Make sure the _ctypes extension can be compiled when WITH_THREAD is 2006-07-19 09:09:32 +00:00
cfield.c proto was dereffed above and is known to be good. No need for X. 2006-07-16 02:05:35 +00:00
ctypes.h Make the prototypes of our private PyUnicode_FromWideChar and 2006-07-14 15:01:05 +00:00
ctypes_dlfcn.h Add pep-291 compatibility markers. 2006-06-12 20:56:48 +00:00
malloc_closure.c Add pep-291 compatibility markers. 2006-06-12 20:56:48 +00:00
stgdict.c Add pep-291 compatibility markers. 2006-06-12 20:56:48 +00:00