envp dup array

+ c->last_exit_status
This commit is contained in:
LuckyLaszlo
2021-10-24 10:23:20 +02:00
parent 39de10e001
commit 906074d2cb
7 changed files with 67 additions and 10 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/10 23:53:17 by lperrey #+# #+# */
/* Updated: 2021/10/10 23:59:25 by lperrey ### ########.fr */
/* Updated: 2021/10/22 13:35:33 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -16,5 +16,7 @@ int free_exit(t_all *c, int exit_status)
{
free(c->prompt_base);
free(c->prompt);
ft_lstclear((t_list **)&c->token_list, free); // a voir avec Hugo, il y a un truc qui me semble superflu dans la fonction
exit(exit_status);
ft_free_2d_arr(c->envp);
}