From 480394756bca5dc2f6a01a449ff88ad818937786 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 26 Feb 2010 01:57:05 +0000 Subject: [PATCH] Call CloseHandle on the hThread member of the PROCESS_INFORMATION structure we get back from CreateProcess. We were already closing hProc but hThread has to be closed too to avoid a handle leak. See the code example at http://msdn.microsoft.com/en-us/library/ms682512(VS.85).aspx. --- CHANGELOG | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 67956d230..ef4fa504a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,10 @@ [NOT YET RELEASED] +o [Ncat] Fixed a handle leak with --exec and --sh-exec on Windows, + found by Jon Greaves. One thread handle was being leaked per child + process invocation. [David] + o [NSE] nbstat.nse can now look up the MAC prefix vendor string. Other scripts can do the same thing using the datafiles.parse_mac_prefixes function. [Thomas Buchanan]