Skip to content

Fix memory leaks problems in t/local/11_read.t reported by Assress Sanitizer #498

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nataraj-hates-MS-for-stealing-github

If you build perl (and consequently Net::SSLleay) using Address Sanitizer, t/local/11_read.t test will fail.

This is because SSL_CTX are not properly freed when no longer in use. If you directly call SSL method of creating something, you should also directly free it, as you would do if you write pure C code.

This patch fixes the problem with the test. I guess that the necessity of calling Net::SSLeay::CTX_free should also be mentioned in docs. But I did not find proper place for putting it without bit rewriting.

You can find instruction on how to build perl in this modulet using ASan in #469

PS please refer me as NATARAJ (Nikolay Shaplov) if you ever would like to mention me anywhere...

…is problem is detected when perl is build with Address Sanitizer
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.

1 participant