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

rust-openssl's BoringSSL implementation of X509_OBJECT_free leaks memory #2098

Closed
davidben opened this issue Nov 19, 2023 · 0 comments · Fixed by #2114
Closed

rust-openssl's BoringSSL implementation of X509_OBJECT_free leaks memory #2098

davidben opened this issue Nov 19, 2023 · 0 comments · Fixed by #2114

Comments

@davidben
Copy link
Contributor

davidben commented Nov 19, 2023

Not sure where this came from, but this is incorrect.

use ffi::X509_OBJECT_free_contents as X509_OBJECT_free;

If this code were ever run, it would leak memory. (Though it doesn't ever run. See #2097. You actually don't need this function at all.) I'm going to go add X509_OBJECT_free to BoringSSL, so you all should just use the ossl111 codepaths. This is all an artifact of the incorrect port to BoringSSL; see #1944.

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 a pull request may close this issue.

1 participant