Azure / amqpnetlite

AMQP 1.0 .NET Library
Apache License 2.0
400 stars 143 forks source link

Memory leak in TcpSocket class #573

Closed AlexeyShinkevich closed 12 months ago

AlexeyShinkevich commented 12 months ago

Potential memory leak when create TcpSocket in https://github.com/Azure/amqpnetlite/blob/master/src/Net/TcpTransport.cs The constructor creates two private fields private readonly SocketAsyncEventArgs sendArgs; private readonly SocketAsyncEventArgs receiveArgs;

SocketAsyncEventArgs implements IDisposable, but dispose not call in class.