We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1a41a commit 4749841Copy full SHA for 4749841
lib/Common/Memory/LargeHeapBlock.cpp
@@ -389,7 +389,10 @@ LargeHeapBlock::ReleasePages(Recycler * recycler)
389
#endif
390
391
#ifdef RECYCLER_FREE_MEM_FILL
392
- memset(blockStartAddress, DbgMemFill, AutoSystemInfo::PageSize * realPageCount);
+ if(blockStartAddress != nullptr)
393
+ {
394
+ memset(blockStartAddress, DbgMemFill, AutoSystemInfo::PageSize * realPageCount);
395
+ }
396
397
pageAllocator->Release(blockStartAddress, realPageCount, segment);
398
RECYCLER_PERF_COUNTER_SUB(LargeHeapBlockPageSize, pageCount * AutoSystemInfo::PageSize);
0 commit comments