[ntcore] Fix memory leak in WebSocketConnection (#6439)

This commit is contained in:
Sam Richter
2024-03-15 13:50:30 -05:00
committed by GitHub
parent 3116f790ea
commit a1af2357e8

View File

@@ -233,6 +233,8 @@ int WebSocketConnection::Flush() {
int count = 0;
for (auto&& frame :
wpi::take_back(std::span{m_frames}, unsentFrames.size())) {
ReleaseBufs(
std::span{m_bufs}.subspan(frame.start, frame.end - frame.start));
count += frame.count;
}
m_frames.clear();