🔨」 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: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/01/22 07:21:18 by mmoussou #+# #+# #
# Updated: 2024/07/29 19:27:29 by adjoly ### ########.fr #
# Updated: 2024/08/01 17:48:26 by adjoly ### ########.fr #
# #
# **************************************************************************** #
@ -14,7 +14,7 @@ SHELL = bash
CC = cc
CFLAGS = -Wall -Werror -Wextra -pipe -fPIE
CFLAGS = -Wall -Werror -Wextra -pipe -fPIE -g
INCLUDE = ./include

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/08 21:44:04 by mmoussou #+# #+# */
/* Updated: 2024/05/22 11:35:58 by adjoly ### ########.fr */
/* Updated: 2024/08/01 17:49:16 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -18,10 +18,11 @@ void ft_lstclear(t_list **lst, void (*del)(void *))
if (!lst || !del)
return ;
while (*lst && lst && del)
while (lst && *lst && del)
{
tmp = (*lst)->next;
ft_lstdelone(*lst, del);
if ((*lst)->content)
ft_lstdelone(*lst, del);
*lst = tmp;
}
}