Memory leak in quit_scanner

Frees the internal memory for 
char* word
char* str_lit
in the tokens before freeing the token struct