Use malloc rather than calloc