Fixed memory leaks
Removed dynamic memory allocation for lookahead token