Merge "Log when malloc functions fail."