Malloc correctly for tokenizer