Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exec: case: Free word before apply_errexit_errreturn
Valgrind has detected a leak since the last commit. Valgrind seems to think `word` is lost if `apply_errexit_errreturn` calls `exit_shell_with_status` and never returns, whereas `word` would be freed if `apply_errexit_errreturn` returned. To suppress the false positive, this commit modifies the code so that `word` is freed before `exit_shell_with_status` is called.
- Loading branch information