mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 22:15:43 +01:00
Properly free memory in new base64 tests
This commit is contained in:
parent
8fb99abaac
commit
6697b6c13b
@ -64,6 +64,9 @@ void base64_encode_hex( char *src_hex, char *dst, int dst_buf_size,
|
|||||||
TEST_ASSERT( len == strlen( dst ) );
|
TEST_ASSERT( len == strlen( dst ) );
|
||||||
TEST_ASSERT( memcmp( dst, res, len ) == 0 );
|
TEST_ASSERT( memcmp( dst, res, len ) == 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
polarssl_free( src );
|
||||||
|
polarssl_free( res );
|
||||||
}
|
}
|
||||||
/* END_CASE */
|
/* 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( len == dst_len );
|
||||||
TEST_ASSERT( memcmp( dst, res, len ) == 0 );
|
TEST_ASSERT( memcmp( dst, res, len ) == 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
polarssl_free( dst );
|
||||||
|
polarssl_free( res );
|
||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user