Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that Process objects are disposed when launching authentication plug-ins #5660

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

Erarndt
Copy link
Contributor

@Erarndt Erarndt commented Mar 1, 2024

Bug

Fixes: NuGet/Home#13280

Regression? Last working version:

Description

Add a using to the Process object created when launching an authentication plug-in to ensure its resources are freed.

Also updates a code path where the wrong process ID was being used for the plug-in log file name.

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception - Existing coverage
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@Erarndt Erarndt requested a review from a team as a code owner March 1, 2024 19:41
@jeffkl jeffkl changed the title Ensure that Process objects are disposed Ensure that Process objects are disposed when launching authentication plug-ins Mar 1, 2024
@jeffkl jeffkl added Approved for CI Community PRs created by someone not in the NuGet team labels Mar 1, 2024
@jeffkl jeffkl self-assigned this Mar 1, 2024
@jeffkl jeffkl merged commit 1057007 into NuGet:dev Mar 4, 2024
16 checks passed
@Erarndt Erarndt deleted the dev-erarndt-processDispose branch March 4, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community PRs created by someone not in the NuGet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Process objects should be disposed so that the finalizer doesn't run
2 participants