malloc in lex