fix various issues
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/library/ssl_tls13_generic.c b/library/ssl_tls13_generic.c
index 48678ff..12ef4d5 100644
--- a/library/ssl_tls13_generic.c
+++ b/library/ssl_tls13_generic.c
@@ -1109,11 +1109,10 @@
MBEDTLS_SSL_DEBUG_MSG( 3, ( "=> handshake wrapup" ) );
/*
- * Free the previous session and switch in the current one
+ * Free the previous session and switch to the current one.
*/
if( ssl->session )
{
-
mbedtls_ssl_session_free( ssl->session );
mbedtls_free( ssl->session );
}