Replace a calloc with a malloc
Comment on why the calloc() calls are needed.