This commit is contained in:
Loic Deridder
2025-02-18 10:01:55 +01:00
parent 84d6079a44
commit 00d2420d9f
7 changed files with 23 additions and 6 deletions

View File

@@ -39,6 +39,7 @@ t_msh *init_msh(char **envp)
msh->ex_code = 0;
msh->here_fd = -1;
msh->input = NULL;
msh->prev_input = NULL;
if (!msh)
return (NULL);
if (!envp[0])
@@ -56,5 +57,6 @@ void free_msh(t_msh *msh)
if (msh->here_fd != -1)
close(msh->here_fd);
free(msh->input);
ft_free(&msh->prev_input);
free(msh);
}