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

Fix memory leaks problems in t/local/44_sess.t reported by Assress Sanitizer #505 Fix t local sess #506

Open
wants to merge 2 commits 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/44_sess.t test will fail.

This PR is made from two patches:

First patch: Adds CTX_frees where they should be. But this affects testing results, as freeing a context trigger remove callback, as far as I guess. I've corrected expected results too.

Second patch: Removes condition for SSL_SESSION_free() . We should always free session, without care if session remove was successful or not. See commit message for more explanations.

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..

…adjust expected values of some tests, and far as when you call CTX_free, is automatically call remove_cb callback, and it changes expected call back call count values
…by increasing reference count. We should cancel that reservation by calling SSL_SESSION_free() anyway, not caring if session have been detached or not
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