Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/perf/lib/PerfServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,17 @@ PerfServer::Init(

ProcCount = (uint16_t)CxPlatProcCount();
DelayWorkers = new (std::nothrow) DelayWorker[ProcCount];
if (!DelayWorkers) {
WriteOutput("Failed to allocate delay workers.\n");
return QUIC_STATUS_OUT_OF_MEMORY;
}
for (uint16_t i = 0; i < ProcCount; ++i) {
if (!DelayWorkers[i].Initialize(this, i)) {
for (uint16_t j = 0; j < ProcCount; ++j) {
Comment thread
csujedihy marked this conversation as resolved.
Outdated
DelayWorkers[j].Shutdown();
}
delete[] DelayWorkers;
DelayWorkers = nullptr;
WriteOutput("Failed to init delay workers.\n");
return QUIC_STATUS_INTERNAL_ERROR;
}
Expand Down
Loading