leaks removing still some left

This commit is contained in:
Nathan Lebrun
2025-02-06 16:03:04 +01:00
parent 4edb42fb9b
commit 68251ee98e
6 changed files with 61 additions and 34 deletions

View File

@@ -75,9 +75,13 @@ t_nodell *cutll(t_node *lst, t_node *expected, size_t limiter)
void free_lltab(t_nodell *nodell)
{
t_nodell *tmp;
while (nodell)
{
free_linked_list(nodell->node);
nodell = nodell->next;
tmp = nodell->next;
free(nodell);
nodell = tmp;
}
}