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

profile: fix fd leak #3328

Merged
merged 1 commit into from
Oct 24, 2023
Merged

profile: fix fd leak #3328

merged 1 commit into from
Oct 24, 2023

Conversation

zhangzujian
Copy link
Member

@zhangzujian zhangzujian commented Oct 24, 2023

What type of this PR

  • Bug fixes

Which issue(s) this PR fixes:

Fixes #(issue-number)

WHAT

🤖 Generated by Copilot at 0b326e5

Improve profiling code in cmd/cmdmain.go. Fix file handle leaks and race conditions for CPU and memory profiles.

🤖 Generated by Copilot at 0b326e5

dumpProfile fixed
No more leaks or races
Winter of errors

HOW

🤖 Generated by Copilot at 0b326e5

  • Fix potential file handle leaks in dumpProfile function (link, link)

@zhangzujian zhangzujian added bug Something isn't working need backport labels Oct 24, 2023
Signed-off-by: 张祖建 <[email protected]>
@zhangzujian zhangzujian marked this pull request as ready for review October 24, 2023 03:14
@zhangzujian zhangzujian requested a review from oilbeater October 24, 2023 03:14
@zhangzujian zhangzujian merged commit d974d89 into kubeovn:master Oct 24, 2023
58 checks passed
@zhangzujian zhangzujian deleted the fix-fd-leak branch October 24, 2023 03:49
bobz965 pushed a commit that referenced this pull request Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants