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

Fix string double free bug in case of full ownership transfer #848

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

badcel
Copy link
Member

@badcel badcel commented Apr 5, 2023

  • I agree that my contribution may be licensed either under MIT or any version of LGPL

If a method takes in a string and ownership is transferred to the method an unowned string is generated as this string is not freed by dotnet and can then be freed by C.

Fixes: #847

If a method takes in a string and ownership is transferred to the method an unowned string is generated as this string is not freed by dotnet and can then be freed by C.
@badcel badcel force-pushed the fix/string-double-free branch from 05fb482 to bc3bf7c Compare April 5, 2023 18:49
@badcel badcel merged commit deea41f into main Apr 5, 2023
@badcel badcel deleted the fix/string-double-free branch April 5, 2023 19:02
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.

String can cause double free bug
1 participant