better do a calloc here. Or else ->next may not be null.