Skip to content

Fix incorrect defer usage and refactor judgement#7521

Merged
dmcgowan merged 1 commit intocontainerd:mainfrom
iyear:fix-defer
Dec 27, 2022
Merged

Fix incorrect defer usage and refactor judgement#7521
dmcgowan merged 1 commit intocontainerd:mainfrom
iyear:fix-defer

Conversation

@iyear
Copy link
Copy Markdown
Contributor

@iyear iyear commented Oct 13, 2022

Use defer to close resp.Body within a double loop will cause a resource leak.

@k8s-ci-robot
Copy link
Copy Markdown

Hi @iyear. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@samuelkarp
Copy link
Copy Markdown
Member

/ok-to-test

@dmcgowan dmcgowan merged commit ba243ff into containerd:main Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants