mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 20:56:02 +00:00
Add missing dispose for CancellationTokenSource (#13420)
This commit is contained in:
1 parent
53fd453ef9
commit
112f1b97a3
2 files changed
+2
No files matched your search
+1
@@ -1087,6 +1087,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
|
||||
}
|
||||
|
||||
_cimSensitiveValueConverter.Dispose();
|
||||
_cancellationTokenSource.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -838,6 +838,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
if (disposing)
|
||||
{
|
||||
_sender?.Dispose();
|
||||
_dnsLookupCancel.Dispose();
|
||||
}
|
||||
|
||||
_disposed = true;
|
||||
|
||||
Reference in new issue
Block a user