Commit 6697b6c1 authored by Paul Bakker's avatar Paul Bakker
Browse files

Properly free memory in new base64 tests

parent 8fb99aba
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment