Raise an assertion if calloc fails