mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-10 22:58:45 +02:00
「🔨」 fix: heredoc leak
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user