heredoc fix

This commit is contained in:
Loic Deridder
2025-02-14 13:15:52 +01:00
parent bf6877e18c
commit bc365a1796
5 changed files with 31 additions and 26 deletions

View File

@@ -18,13 +18,15 @@ void exit_heredoc(char *limiter, t_msh *msh, t_node *lst)
ft_fprintf(1, "%s\n", limiter);
free_linked_list(lst);
free_msh(msh);
ft_free(&limiter);
exit(EXIT_SUCCESS);
}
void end_heredoc(char *buf, t_msh *msh, t_node *lst)
void end_heredoc(char *buf, t_msh *msh, t_node *lst, char *limiter)
{
ft_fprintf(1, "%s\n", buf);
free_msh(msh);
free_linked_list(lst);
ft_free(&limiter);
exit(EXIT_SUCCESS);
}