Fixed segfault with realloc in lexer.l