fix(parsing/pipeline): leak when optional pipeline returns NULL

This commit is contained in:
Khaïs COLIN 2025-04-16 18:23:06 +02:00
parent 6cc6e6cfb5
commit 9271b7fa92
3 changed files with 18 additions and 6 deletions

View file

@ -697,4 +697,11 @@ expecting <<EOF
hello!
EOF
when_run <<EOF "double pipe after echo"
echo | |
EOF
expecting <<"EOF"
minishell: syntax error near unexpected token `|'
EOF
finalize