mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-26 17:26:15 +01:00
Cleaner test-memory cleanups
This commit is contained in:
parent
02303e8be4
commit
58ef6ec613
4 changed files with 37 additions and 0 deletions
|
|
@ -60,5 +60,14 @@ x509_cert_req_check:key_file:md_type:cert_req_check_file
|
|||
|
||||
TEST_ASSERT( memcmp( c, pem.buf, pem.buflen ) == 0 );
|
||||
TEST_ASSERT( pem.buflen == (size_t) ret );
|
||||
|
||||
while( ( cur = req_name.next ) != NULL )
|
||||
{
|
||||
req_name.next = cur->next;
|
||||
free( cur );
|
||||
}
|
||||
|
||||
rsa_free( &rsa );
|
||||
pem_free( &pem );
|
||||
}
|
||||
END_CASE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue