mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:40:48 +00:00
taskmgr: Fix a memory leak.
This commit is contained in:
parent
469669e629
commit
e76fe016e4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue