Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add missing dispose for CancellationTokenSource#13420

Merged
anmenaga merged 2 commits intoPowerShell:masterfrom
Youssef1313:patch-1
Aug 13, 2020
Merged

Add missing dispose for CancellationTokenSource#13420
anmenaga merged 2 commits intoPowerShell:masterfrom
Youssef1313:patch-1

Conversation

@Youssef1313
Copy link
Contributor

@Youssef1313 Youssef1313 commented Aug 12, 2020

Dispose() call was missing on CancellationTokenSource in CimChildJobBase and TestConnectionCommand.

@xtqqczze
Copy link
Contributor

A useful tool for work like this is: IDisposableAnalyzers (alpha release).

}

_cimSensitiveValueConverter.Dispose();
_cancellationTokenSource.Dispose();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comes from Windows PowerShell.
@rjmholt your team could internally consider a backport.

@iSazonov iSazonov added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Aug 13, 2020
@anmenaga anmenaga merged commit 112f1b9 into PowerShell:master Aug 13, 2020
@Youssef1313 Youssef1313 deleted the patch-1 branch August 13, 2020 22:07
@iSazonov
Copy link
Collaborator

@Youssef1313 Thanks for your contribution!

@iSazonov iSazonov added this to the 7.1.0-preview.6 milestone Aug 14, 2020
@ghost
Copy link

ghost commented Aug 17, 2020

🎉v7.1.0-preview.6 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants