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

@@ -82,6 +82,7 @@ int exec(t_ast_n *node)
if (execve(path, node->args, node->msh->env) == -1)
{
free_child(node->msh);
ft_free(&path);
perror("execve");
exit(1);
}