1
Fork 0
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:
Andreas Kling 2018-11-09 17:59:14 +01:00
parent e0ca6bb97e
commit 985074c790
2 changed files with 12 additions and 3 deletions

View file

@ -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 };