Fix memory leak in TLS 1.3 record protection unit test

Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
Hanno Becker 2021-03-23 06:00:21 +00:00
parent a77d005d39
commit 80e760e006

View File

@ -4024,6 +4024,7 @@ void ssl_tls1_3_record_protection( int ciphersuite,
ASSERT_COMPARE( rec.buf + rec.data_offset, rec.data_len,
plaintext->x, plaintext->len );
mbedtls_free( buf );
mbedtls_ssl_transform_free( &transform_send );
mbedtls_ssl_transform_free( &transform_recv );
}