Check for calloc failure