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

Free memory allocated by base64_encode() #442

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

paleolimbot
Copy link
Contributor

This showed up in nanoarrow's CI: https://github.com/apache/arrow-nanoarrow/actions/runs/9823176470/job/27120757486#step:4:3425

For both encoding and decoding it looks like the pointers will leak if the following R allocation fails (probably unlikely with the size of raw vectors usually encoded/decoded, though).

@jeroen jeroen merged commit fe7a5c3 into jeroen:master Jul 9, 2024
9 of 10 checks passed
@jeroen
Copy link
Owner

jeroen commented Jul 9, 2024

Thanks, good catch!

paleolimbot added a commit to apache/arrow-nanoarrow that referenced this pull request Jul 9, 2024
There are a few problems in the verification workflow:

- On Windows, we weren't exporting any symbols in the C data integration
test (when building with CMake)
- The R package testthat doesn't seem to support centos7, which we would
need to test the R package there
- The R package jsonlite seems to leak memory. One fix is
jeroen/jsonlite#442 , but in the meantime we can
ignore the leak since it doesn't come from us.
@paleolimbot
Copy link
Contributor Author

@jeroen Are there any plans to release a version containing this PR in the near future? We still have a suppression in our CI to account for this and I would love to be able to remove it 🙂

@jeroen
Copy link
Owner

jeroen commented Sep 20, 2024

ok it is on cran now.

@paleolimbot
Copy link
Contributor Author

Thank you!

paleolimbot pushed a commit to apache/arrow-nanoarrow that referenced this pull request Sep 24, 2024
…ite release (#580)

This suppression was annotated "Can be removed when
jeroen/jsonlite#442 is released". This PR can
serve as a placeholder for that until it is released
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