Does SSL_CTX_free automatically purge the session cache when its reference count reaches zero?
Determine whether OpenSSL’s SSL_CTX_free function should automatically flush the internal session cache when the SSL_CTX object's reference count drops to zero, thereby eliminating ambiguous memory usage patterns. The reference‑counting mechanism added in OpenSSL 1.1.1 prevents leaks caused by freeing an SSL_CTX while active SSL objects still reference it, b