Fix Cleanup Bug in OOM Case
@@ -263,16 +263,24 @@ Next:
Error:
+ if (Buffer) {
CXPLAT_FREE(Buffer, QUIC_POOL_PLATFORM_TMP_ALLOC);
+ }
if (!Result) {
+ if (CxPlatNumaMasks) {
CXPLAT_FREE(CxPlatNumaMasks, QUIC_POOL_PLATFORM_PROC);
CxPlatNumaMasks = NULL;
+ }
+ if (CxPlatProcessorGroupOffsets) {
CXPLAT_FREE(CxPlatProcessorGroupOffsets, QUIC_POOL_PLATFORM_PROC);
CxPlatProcessorGroupOffsets = NULL;
+ }
+ if (CxPlatProcessorInfo) {
CXPLAT_FREE(CxPlatProcessorInfo, QUIC_POOL_PLATFORM_PROC);
CxPlatProcessorInfo = NULL;
}
+ }
return Result;
}
