Cleaner test-memory cleanups
diff --git a/tests/suites/test_suite_rsa.function b/tests/suites/test_suite_rsa.function
index 312f451..6c9c434 100644
--- a/tests/suites/test_suite_rsa.function
+++ b/tests/suites/test_suite_rsa.function
@@ -101,6 +101,7 @@
     }
 
     mpi_free( &P1 ); mpi_free( &Q1 ); mpi_free( &H ); mpi_free( &G );
+    rsa_free( &ctx );
 }
 END_CASE
 
@@ -168,6 +169,8 @@
     }
 
     TEST_ASSERT( rsa_pkcs1_verify( &ctx, RSA_PUBLIC, {digest}, 0, hash_result, result_str ) == {result} );
+
+    rsa_free( &ctx );
 }
 END_CASE
 
@@ -218,6 +221,7 @@
     TEST_ASSERT( strcasecmp( (char *) output_str, {result_hex_str} ) == 0 );
 
     mpi_free( &P1 ); mpi_free( &Q1 ); mpi_free( &H ); mpi_free( &G );
+    rsa_free( &ctx );
 }
 END_CASE
 
@@ -246,6 +250,8 @@
     unhexify( result_str, {result_hex_str} );
 
     TEST_ASSERT( rsa_pkcs1_verify( &ctx, RSA_PUBLIC, SIG_RSA_RAW, hash_len, hash_result, result_str ) == {correct} );
+
+    rsa_free( &ctx );
 }
 END_CASE
 
@@ -281,6 +287,8 @@
 
         TEST_ASSERT( strcasecmp( (char *) output_str, {result_hex_str} ) == 0 );
     }
+
+    rsa_free( &ctx );
 }
 END_CASE
 
@@ -313,6 +321,8 @@
 
         TEST_ASSERT( strcasecmp( (char *) output_str, {result_hex_str} ) == 0 );
     }
+
+    rsa_free( &ctx );
 }
 END_CASE
 
@@ -362,6 +372,7 @@
     }
 
     mpi_free( &P1 ); mpi_free( &Q1 ); mpi_free( &H ); mpi_free( &G );
+    rsa_free( &ctx );
 }
 END_CASE
 
@@ -393,6 +404,8 @@
 
         TEST_ASSERT( strcasecmp( (char *) output_str, {result_hex_str} ) == 0 );
     }
+
+    rsa_free( &ctx );
 }
 END_CASE
 
@@ -440,6 +453,7 @@
     }
 
     mpi_free( &P1 ); mpi_free( &Q1 ); mpi_free( &H ); mpi_free( &G );
+    rsa_free( &ctx );
 }
 END_CASE
 
@@ -470,6 +484,8 @@
     }
 
     TEST_ASSERT( rsa_check_pubkey( &ctx ) == {result} );
+
+    rsa_free( &ctx );
 }
 END_CASE
 
@@ -515,6 +531,8 @@
     }
 
     TEST_ASSERT( rsa_check_privkey( &ctx ) == {result} );
+
+    rsa_free( &ctx );
 }
 END_CASE
 
@@ -537,6 +555,8 @@
     {
         TEST_ASSERT( rsa_check_privkey( &ctx ) == 0 );
     }
+
+    rsa_free( &ctx );
 }
 END_CASE