🔨」 fix: fixed conditional jump when heredoc in pipe TODO: leak 😭

This commit is contained in:
2024-08-01 18:09:49 +02:00
parent 4960d5f2ca
commit 846fa4d5b8
5 changed files with 12 additions and 12 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/31 12:47:13 by adjoly #+# #+# */
/* Updated: 2024/07/20 17:11:41 by adjoly ### ########.fr */
/* Updated: 2024/08/01 18:07:13 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -41,8 +41,7 @@ t_list *get_cmd_list(t_list *list)
tmp = tmp->next;
while (tmp)
{
ft_lstadd_back(&cmd_list, ft_lstnew(get_redir_fd(tmp->content, \
((t_token *)tmp->content)->redirection)));
ft_lstadd_back(&cmd_list, make_lst(tmp));
if (!ft_lstlast(cmd_list)->content)
{
ft_lstclear(&cmd_list, &free_cmd);