Made a memory allocator (crude)
This commit is contained in:
parent
b5c7344851
commit
941bac31b6
53 changed files with 469 additions and 146 deletions
|
|
@ -24,7 +24,7 @@ void list_free_all(t_list **lst, void (*del)(void *))
|
|||
del((*lst)->content);
|
||||
tmp = *lst;
|
||||
*lst = (*lst)->next;
|
||||
free(tmp);
|
||||
me_free(tmp);
|
||||
}
|
||||
*lst = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue