mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
Okay, now *actually* plug the leaks in exec().
I didn't even put the { } properly around everything that would leak. Let's make sure this works correctly by splitting out the work into a helper called do_exec().
This commit is contained in:
parent
e0ca6bb97e
commit
985074c790
2 changed files with 12 additions and 3 deletions
|
@ -209,6 +209,7 @@ private:
|
|||
|
||||
Process(String&& name, uid_t, gid_t, pid_t ppid, RingLevel, RetainPtr<VirtualFileSystem::Node>&& cwd = nullptr, RetainPtr<VirtualFileSystem::Node>&& executable = nullptr, TTY* = nullptr, Process* fork_parent = nullptr);
|
||||
|
||||
int do_exec(const String& path, Vector<String>&& arguments, Vector<String>&& environment);
|
||||
void push_value_on_stack(dword);
|
||||
|
||||
PageDirectory* m_page_directory { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue