Freeing memory from the lexer