Skip to content

Fix some OrtStatus* leaks #25036

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

Merged
merged 7 commits into from
Jun 16, 2025
Merged

Fix some OrtStatus* leaks #25036

merged 7 commits into from
Jun 16, 2025

Conversation

edgchen1
Copy link
Contributor

Description

OrtStatus* values should be released with ReleaseStatus(). In some places this was not being done.

This change adds a helper function to convert to the internal Status type and also release the OrtStatus*. Existing leaky usages of the helper function ToStatus() were updated.

Motivation and Context

Fix OrtStatus* leaks.

snnn
snnn previously approved these changes Jun 12, 2025
This reverts commit a3b92d5.
Copy link
Contributor

@skottmckay skottmckay left a comment

Choose a reason for hiding this comment

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

:shipit:

@edgchen1 edgchen1 merged commit 2594b47 into main Jun 16, 2025
89 checks passed
@edgchen1 edgchen1 deleted the edgchen1/release_ort_status branch June 16, 2025 15:42
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.

5 participants