This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix leak in DbCommand's use of CancellationToken
We're only disposing of the registration on error; we should also dispose of it on success. While doing this, I've also avoided a delegate allocation per operation.
- Loading branch information
1 parent
391964b
commit 297fcc3
Showing
1 changed file
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters