pnoltes commented on issue #289:
URL: https://github.com/apache/celix/issues/289#issuecomment-907854438


   Theoretically `clauses` can be null if the underlining call to 
`linkedList_create` fails. 
   
   This would mean the malloc in the linkedList_create should fail at:
   
https://github.com/apache/celix/blob/0729c4dfaa6b45f436e41f13ebe71960c746d109/libs/utils/src/linked_list.c#L35
   
   Celix has the approach not to check malloc, because in practices malloc 
calls will always return a value (pointer to mem or virtual pointer) and if 
memory becomes an issue the oom killer will kill the process.
   https://linux-mm.org/OOM_Killer
   
   So in short, no this cannot happen. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to