-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
area-signalrIncludes: SignalR clients and serversIncludes: SignalR clients and servershelp wantedUp for grabs. We would accept a PR to help resolve this issueUp for grabs. We would accept a PR to help resolve this issue
Milestone
Description
Describe the bug
there is CancellationTokenSource type variable in src/SignalR/clients/csharp/Client.Core/src/HubConnection.cs
aspnetcore/src/SignalR/clients/csharp/Client.Core/src/HubConnection.cs
Lines 1599 to 1600 in 257d690
| var uploadStreamSource = new CancellationTokenSource(); | |
| connectionState.UploadStreamToken = uploadStreamSource.Token; |
and in finally block of this private method only Cancel() method calls
| uploadStreamSource.Cancel(); |
How about to Dispose this CTS object in finally block or add using construction in its declaration to eliminate potential memory leaks?
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Metadata
Metadata
Assignees
Labels
area-signalrIncludes: SignalR clients and serversIncludes: SignalR clients and servershelp wantedUp for grabs. We would accept a PR to help resolve this issueUp for grabs. We would accept a PR to help resolve this issue