Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Process Handle Leak on Reused Process IDs #414

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thouravi
Copy link

Description

When a new process start event was received for an existing Process ID (PID), the existing ProcessInfo handle (mHandle) was not closed, leading to handle leaks and potential resource exhaustion.

Solution

Closed the existing process handle in ProcessProcessEvent before reinitializing ProcessInfo for reused PIDs and Added checks to safely close mHandle when a process start event overlaps with a previously tracked PID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant