more memory leak fixes, though only a few are likely to happen

This commit is contained in:
2007-05-27 21:33:48 +00:00
parent d9e85385fd
commit bcc3143119
20 changed files with 97 additions and 59 deletions

View File

@@ -426,11 +426,12 @@ PyObject *M_Group_Get( PyObject * self, PyObject * args )
while( group_iter ) {
pyobj = Group_CreatePyObject( group_iter );
if( !pyobj )
if( !pyobj ) {
Py_DECREF(grouplist);
return ( EXPP_ReturnPyObjError
( PyExc_MemoryError,
"couldn't create Object" ) );
}
PyList_SET_ITEM( grouplist, index, pyobj );
group_iter = group_iter->id.next;