diff --git a/redirection/heredoc.c b/redirection/heredoc.c index 08d9535..c345855 100644 --- a/redirection/heredoc.c +++ b/redirection/heredoc.c @@ -6,7 +6,7 @@ /* By: cchauvet "); line = get_next_line(*ft_get_heredoc()); if (line == NULL) + { + ft_closer(fds); return (1); + } line[ft_strlen(line) - 1] = '\0'; if (ft_strcmp(line, stop) == 0) {