mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[ntcore] Fix memory leak in WebSocketConnection (#6439)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user