Properly free memory in new base64 tests
This commit is contained in:
parent
8fb99abaac
commit
6697b6c13b
1 changed files with 6 additions and 0 deletions
|
@ -64,6 +64,9 @@ void base64_encode_hex( char *src_hex, char *dst, int dst_buf_size,
|
|||
TEST_ASSERT( len == strlen( dst ) );
|
||||
TEST_ASSERT( memcmp( dst, res, len ) == 0 );
|
||||
}
|
||||
|
||||
polarssl_free( src );
|
||||
polarssl_free( res );
|
||||
}
|
||||
/* END_CASE */
|
||||
|
||||
|
@ -84,6 +87,9 @@ void base64_decode_hex( char *src, char *dst_hex, int dst_buf_size,
|
|||
TEST_ASSERT( len == dst_len );
|
||||
TEST_ASSERT( memcmp( dst, res, len ) == 0 );
|
||||
}
|
||||
|
||||
polarssl_free( dst );
|
||||
polarssl_free( res );
|
||||
}
|
||||
/* END_CASE */
|
||||
|
||||
|
|
Loading…
Reference in a new issue