You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes, this is good approach, just need to make sure at each call how the code handle errors (return null in this specific case) it may be different between calls
Expected behavior
Malloc return values should be verified, and in case of unsuccessful malloc, error should be propagate
Actual behavior
unsuccessful malloc will return null, and the following action will cause crash
Steps to reproduce the behavior
run on low memory system
###examples
db/c.cc (7 instances)
cache/lru.cache.cc (2 instances)
The text was updated successfully, but these errors were encountered: