Skip to content

Release resources in error paths via cleanup #4402

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

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

mugitya03
Copy link

Replace direct returns in error-handling branches with a unified cleanup block that frees allocated resources before returning, improving code quality and robustness.

jinyaoguo and others added 2 commits June 4, 2025 18:08
Replace direct returns in error-handling branches with a unified
cleanup block that frees allocated resources before returning,
improving code quality and robustness.
@Cyan4973 Cyan4973 self-assigned this Jun 13, 2025
@Cyan4973
Copy link
Contributor

Cyan4973 commented Jun 13, 2025

Unfortunately, merge conflicts have emerged since the review.
Would you be able to fix them ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants