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

cruntime/*printf*: free temporary string buffers also on failure #50469

Merged
merged 1 commit into from
Apr 8, 2021

Conversation

tmds
Copy link
Member

@tmds tmds commented Mar 31, 2021

Fixes #50408.

@janvorli ptal

return FALSE;
goto EXIT;
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this set Result to FALSE before the goto?

Copy link
Member Author

Choose a reason for hiding this comment

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

Result is initialized to FALSE: BOOL Result = FALSE;.

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@ghost
Copy link

ghost commented Mar 31, 2021

Hello @janvorli!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@janvorli
Copy link
Member

janvorli commented Apr 8, 2021

The test leg failures are a known issue #50466

@janvorli janvorli merged commit 103ab87 into dotnet:main Apr 8, 2021
@ghost ghost locked as resolved and limited conversation to collaborators May 8, 2021
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cruntime printf* TempStr not freed
4 participants