heredoc fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user