SSL_SESSION_free - free an allocated SSL_SESSION structure
#include <openssl/ssl.h>
void SSL_SESSION_free(SSL_SESSION *session);
SSL_SESSION_free() decrements the reference count of
session and removes the SSL_SESSION structure pointed to
by session and frees up the allocated memory, if the the
reference count has reached 0.
SSL_SESSION_free() does not provide diagnostic
information.
ssl(3), SSL_get_session(3)