mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 01:22:43 +02:00
Shell: Eliminate reference leak in AST::Execute::run()
This commit is contained in:
committed by
Andreas Kling
parent
ab3e787334
commit
1dc5574245
Notes:
sideshowbarker
2024-07-19 03:51:47 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/1dc55742454 Pull-request: https://github.com/SerenityOS/serenity/pull/3085 Reviewed-by: https://github.com/BenWiederhake
@@ -889,7 +889,7 @@ RefPtr<Value> Execute::run(RefPtr<Shell> shell)
|
||||
}
|
||||
auto& last_in_commands = commands.last();
|
||||
|
||||
last_in_commands.redirections.prepend(*new FdRedirection(STDOUT_FILENO, pipefd[1], Rewiring::Close::Destination));
|
||||
last_in_commands.redirections.prepend(adopt(*new FdRedirection(STDOUT_FILENO, pipefd[1], Rewiring::Close::Destination)));
|
||||
last_in_commands.should_wait = true;
|
||||
last_in_commands.should_notify_if_in_background = false;
|
||||
last_in_commands.is_pipe_source = false;
|
||||
|
||||
Reference in New Issue
Block a user