fixed memory leak

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3387 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2010-07-16 11:42:09 +00:00
parent fcfb1aa9b2
commit c3adc0e3b4
+2
View File
@@ -713,6 +713,8 @@ NTSTATUS PhpOpenCsrProcesses(
}
} while (process = PH_NEXT_PROCESS(process));
PhFree(processes);
*ProcessHandles = PhAllocateCopy(processHandleList->Items, processHandleList->Count * sizeof(HANDLE));
*NumberOfProcessHandles = processHandleList->Count;