PyPy 7.3.9 SSL module appears to leak memory.
Originally raised as Requests issue #2183.
Looks like it should have been fixed in version 5.9, But in 7.3.9 i found the leaks still exist, and the test code can still prove that.
import socket
import ssl
import sys
def main():
ctx = ssl.create_default_context()
s = socket.create_connection(('www.bing.com', 443))
s = ctx.wrap_socket(s, server_hostname='www.bing.com')
while True:
s.getpeercert()
sys.stderr.write('.')
sys.stderr.flush()
if __name__ == '__main__':
main()