wbond / oscrypto

Compiler-free Python crypto library backed by the OS, supporting CPython and PyPy
MIT License
320 stars 70 forks source link

Fix a memory leak on OSX with TLS #29

Closed wiml closed 5 years ago

wiml commented 5 years ago

Release the trust_ref we got from SSLCopyPeerTrust() when we're done with it.

Noticed this when running leaks on the python process at the end of the test suite.

wbond commented 5 years ago

Sorry that I had missed this before - just merged it into master. Some work I did recently should fix the failing CI results.