PauloMigAlmeida / aws-lambda-c-runtime

AWS Lambda C Runtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add safeguard for every (x)alloc function used throughout the code

PauloMigAlmeida opened this issue · comments

Since the malloc function may return a NULL value if it is unable to allocate memory, it is a good practice to check for a NULL value

Quote from Understanding and using C pointers book