Cleanup all memory allocations and their exception handling

This commit is contained in:
Siu Kwan Lam 2012-09-15 18:34:15 -07:00
commit 0079b1de07
4 changed files with 15 additions and 39 deletions

View file

@ -97,10 +97,6 @@ void *get_object_arg(PyObject *args)
void **make_array_from_list(PyObject *list, int n)
{
void **arr = new void*[n] ;
if (!arr){
PyErr_NoMemory();
return NULL;
}
int i;
for (i=0; i<n; i++) {