Allocates memory to token

This gives us a token that has been initialized before we pass it to the get_ functions. Otherwise we try to modify a token before we allocate memory to it