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

Correctly free null pointers #263

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

uncomputable
Copy link
Collaborator

Fixes #262

Explain the safety of rust_alloc, rust_calloc and rust_free.
Upgrade one addition to saturating_add to ensure safety.
Copy link
Collaborator

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK 7cf1a90; successfully ran local tests; thanks! These are great improvements to the docs

@apoelstra apoelstra merged commit ca0c0eb into BlockstreamResearch:master Jan 29, 2025
16 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.

rust_free does not handle NULL the way free does
2 participants