This commit is contained in:
Loic Deridder
2025-02-12 14:59:46 +01:00
parent 269abdad56
commit 4ba34d37b5
3 changed files with 13 additions and 3 deletions

View File

@@ -130,6 +130,6 @@ t_node *tokenize(char *str)
del_void_nodes(&head);
debug_token_list(head, "tokenizer");
if (syntax_error(head))
return (NULL);
return (free_linked_list(head), NULL);
return (head);
}