fix(simple_cmd): did not free redirection list correctly

This commit is contained in:
Khaïs COLIN 2025-03-19 16:26:45 +01:00
parent 0584757446
commit c258fa6077
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
3 changed files with 6 additions and 4 deletions

View file

@ -6,7 +6,7 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/21 12:30:07 by khais #+# #+# */
/* Updated: 2025/03/19 14:28:36 by khais ### ########.fr */
/* Updated: 2025/03/19 16:49:12 by khais ### ########.fr */
/* */
/* ************************************************************************** */
@ -36,6 +36,7 @@ void simple_cmd_destroy(t_simple_cmd *cmd)
if (cmd == NULL)
return ;
wordlist_destroy(cmd->words);
redir_list_destroy(cmd->redirections);
free(cmd);
}