in platform/posix/transport/src/mbedtls_pkcs11_posix.c [232:242]
static void contextFree( MbedtlsPkcs11Context_t * pContext )
{
if( pContext != NULL )
{
mbedtls_net_free( &( pContext->socketContext ) );
mbedtls_ssl_free( &( pContext->context ) );
mbedtls_ssl_config_free( &( pContext->config ) );
mbedtls_x509_crt_free( &( pContext->rootCa ) );
mbedtls_x509_crt_free( &( pContext->clientCert ) );
}
}