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: do not free string #253

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

TimoGlastra
Copy link
Member

Based on discussion in this PR" openwallet-foundation/credo-ts#1606

Signed-off-by: Timo Glastra <timo@animo.id>
@TimoGlastra
Copy link
Member Author

One thing I'm curious about: Do we also need to modify the calls to string_free in the RN wrapper? I think it's probably different as there's no automatic GC?

@genaris
Copy link
Contributor

genaris commented Oct 19, 2023

One thing I'm curious about: Do we also need to modify the calls to string_free in the RN wrapper? I think it's probably different as there's no automatic GC?

For React Native I think it is good to keep freeing it manually, considering that the only thing we do there is assigning a pointer. In Node.js I'm still not too convinced the way it works, but apparently it does some magic that makes this fix important to not double freeing memory.

@TimoGlastra
Copy link
Member Author

Are you okay with the changes in this PR @genaris?

We should add you to the maintainers list

@TimoGlastra TimoGlastra merged commit 3706955 into hyperledger:main Oct 19, 2023
25 checks passed
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.

2 participants