chore: fix compilation on my machine
This commit is contained in:
parent
d7668b88a8
commit
a0e9ccb0e3
|
@ -18,7 +18,8 @@ void ft_lstdelone(t_list *lst, void (*del)(void *))
|
||||||
return ;
|
return ;
|
||||||
if (del)
|
if (del)
|
||||||
{
|
{
|
||||||
free(lst);
|
|
||||||
del(lst->content);
|
del(lst->content);
|
||||||
|
free(lst);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue