From 159183e4bb7057ad2cb383e24fd6aebca290fb52 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Fri, 10 Oct 2014 12:54:31 +0200 Subject: [PATCH] Fixed a handle leak. --- pandora_agents/win32/modules/pandora_module.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora_agents/win32/modules/pandora_module.cc b/pandora_agents/win32/modules/pandora_module.cc index 9cc6c4758a..67f6c48533 100644 --- a/pandora_agents/win32/modules/pandora_module.cc +++ b/pandora_agents/win32/modules/pandora_module.cc @@ -1464,6 +1464,7 @@ Pandora_Module::evaluateConditions () { } WaitForSingleObject(pi.hProcess, this->module_timeout); CloseHandle (pi.hProcess); + CloseHandle (pi.hThread); } } }