Cleanup all memory allocations and their exception handling
This commit is contained in:
parent
f17d4f7d62
commit
0079b1de07
4 changed files with 15 additions and 39 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue