Fix memory leak in SSL_new if errors occur.