free start

This commit is contained in:
gazhonsepaskwa
2025-02-05 15:50:47 +01:00
parent 2369795bd2
commit 8b3d4868dd
6 changed files with 57 additions and 5 deletions

View File

@@ -73,6 +73,8 @@ void interpret_cmd(char **input, t_msh *msh)
{
msh->head = parser(*input, msh);
msh->ex_code = execute_command(msh->head);
free_ast(msh->head);
msh->head = NULL;
free(*input);
*input = NULL;
}