Replaced missed xzalloc with calloc