For example, during the Malloc, if any allocation fails, we are printing the message here and continuing with other statements. This may lead to a segmentation fault in succeeding code where we try to access this memory that is not allocated.
We should create a mechanism to abort the runtime quickly as we get to know about allocation failure to avoid other segmentation faults.
@rajsite suggestion in #681 : To use the C abort function.