Skip to content

Commit

Permalink
[#573] dispose SocketAsyncEventArgs objects in TcpTransport.
Browse files Browse the repository at this point in the history
  • Loading branch information
xinchen10 committed Oct 9, 2023
1 parent 772d0d3 commit 751011a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Net/TcpTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ int ITransport.Receive(byte[] buffer, int offset, int count)

void ITransport.Close()
{
this.sendArgs.Dispose();
this.receiveArgs.Dispose();
this.socket.Dispose();

var temp = this.receiveBuffer;
Expand Down

0 comments on commit 751011a

Please sign in to comment.