Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

Commit 366fc6a

Browse files
committed
+ | Close handles for process and thread in Hijack function to prevent resource leaks
1 parent 32f0884 commit 366fc6a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Threat/Main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ static bool Hijack(const wchar_t *processName, t_HijackData *data) {
239239
return false;
240240
}
241241

242+
CloseHandle(data->hProcess);
243+
CloseHandle(data->hThread);
242244
return true;
243245
}
244246

0 commit comments

Comments
 (0)