🔨」 fix: heredoc leak

This commit is contained in:
2024-08-10 18:13:13 +02:00
parent f22d5653d8
commit f4fd027293
12 changed files with 82 additions and 44 deletions

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/07 16:02:40 by mmoussou #+# #+# */
/* Updated: 2023/11/08 17:02:57 by mmoussou ### ########.fr */
/* Updated: 2024/08/10 13:57:35 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -16,6 +16,8 @@ t_list *ft_lstnew(void *content)
{
t_list *r;
if (!content || !*content)
return (NULL);
r = malloc(sizeof(t_list));
if (!r)
return (NULL);