Skip to content

Commit

Permalink
Fix memory leak in change_last_ack
Browse files Browse the repository at this point in the history
  • Loading branch information
r58Playz committed Mar 29, 2024
1 parent 437ef17 commit 73e1449
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stream/tcb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ impl Tcb {
inflight_packet.seq = ack;
self.inflight_packets.push(inflight_packet);
}
if i != 0 {
self.inflight_packets.drain(0..i);
}
}
}

Expand Down

0 comments on commit 73e1449

Please sign in to comment.