Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
[Merge chakra-core/ChakraCore@71d8959010] [MERGE #3235 @xiaoyinl] Fix…
Browse files Browse the repository at this point in the history
… memory leak in AutoSystemInfo::InitPhysicalProcessorCount

Merge pull request #3235 from xiaoyinl:memleak_sysinfo

The heap buffer `pBufferStart` is not deleted if `GetLogicalProcessorInformation` fails.
  • Loading branch information
chakrabot committed Aug 19, 2017
1 parent 7a49ba4 commit c186f8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deps/chakrashim/core/lib/Common/Core/SysInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ AutoSystemInfo::InitPhysicalProcessorCount()
bResult = GetLogicalProcessorInformation(pBufferCurrent, &size);
if (!bResult)
{
NoCheckHeapDeleteArray(count, pBufferStart);
return false;
}

Expand Down

0 comments on commit c186f8f

Please sign in to comment.