Commit e76fe016 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

taskmgr: Fix a memory leak.

parent 469669e6
......@@ -124,8 +124,10 @@ void PerfDataRefresh(void)
/* Get processor time information */
SysProcessorTimeInfo = (PSYSTEM_PROCESSORTIME_INFO)malloc(sizeof(SYSTEM_PROCESSORTIME_INFO) * SystemBasicInfo.bKeNumberProcessors);
status = NtQuerySystemInformation(SystemProcessorTimeInformation, SysProcessorTimeInfo, sizeof(SYSTEM_PROCESSORTIME_INFO) * SystemBasicInfo.bKeNumberProcessors, &ulSize);
if (status != NO_ERROR)
if (status != NO_ERROR) {
free(SysProcessorTimeInfo);
return;
}
/* Get handle information
* We don't know how much data there is so just keep
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment