# HG changeset patch # User Paul Boddie # Date 1679245090 -3600 # Node ID 0e0c902368d1316ed99f5e910c10d0984068372b # Parent 9e465646b8590e0426839ce5b5ffc4dfc3ce2166 Close the principal file structure after having constructed the program payload. diff -r 9e465646b859 -r 0e0c902368d1 libexec/lib/src/process_creating.cc --- a/libexec/lib/src/process_creating.cc Sun Mar 19 01:18:23 2023 +0100 +++ b/libexec/lib/src/process_creating.cc Sun Mar 19 17:58:10 2023 +0100 @@ -407,6 +407,11 @@ delete _program_payload; delete _program_stack; + /* Close the file given that it was used to construct the payload and + separate file references are now used by the created process. */ + + client_close(file); + return L4_EOK; }