Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPL: fix leak in rate limiting #12840

Merged
merged 1 commit into from
Mar 10, 2024
Merged
Changes from all 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
5 changes: 2 additions & 3 deletions Framework/Core/src/CommonDataProcessors.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,7 @@ void retryMetricCallback(uv_async_t* async)
}
fair::mq::MessagePtr payload(device->NewMessage());
payload->Rebuild(&oldestPossingTimeslice, sizeof(int64_t), nullptr, nullptr);
auto* consumed = (size_t*)malloc(sizeof(size_t));
*consumed = oldestPossingTimeslice;
auto consumed = oldestPossingTimeslice;

int64_t result = channel->second[0].Send(payload, 100);
// If the sending worked, we do not retry.
Expand All @@ -592,7 +591,7 @@ void retryMetricCallback(uv_async_t* async)
// data will still happen.
uv_async_send(async);
} else {
lastTimeslice = *consumed;
lastTimeslice = consumed;
}
}

Expand Down
Loading