-
Notifications
You must be signed in to change notification settings - Fork 55
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
Strings not freed in the JS wrapper? #236
Comments
Yeah that does not seem to be too good. I think we have three solutions but they all have some disadvantages
IMO it is okay to wait for typeScript 5.2 and leave this as-is for now. |
Well, if that iteration plan is accurate, it will be out in 4 days from now! So definitely it's worth waiting a bit and doing not only this but also for object handle clear() methods. If not, I'd go for option 2. |
I think the wrapper copies these FFI string buffers to Strings anyway, so it should be possible to free the reference before returning. I noticed later that this would apply to |
I don't see any references to
anoncreds_string_free
, but this is likely required for all strings coming from the FFI layer. This could be a significant memory leak over time.The text was updated successfully, but these errors were encountered: