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 we close HTTP connections on all paths #2017

Merged
merged 2 commits into from
Jun 29, 2023

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Jun 28, 2023

  • Close ImageSource objects
  • Close the HTTP client used by the atomic transport

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM

That's a real leak in the OptimizeDestinationImageAlreadyExists case,
plus several instances in test code.

Signed-off-by: Miloslav Trmač <[email protected]>
@mtrmac mtrmac merged commit 2ce250d into containers:main Jun 29, 2023
9 checks passed
@mtrmac mtrmac deleted the close-images branch June 29, 2023 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants