aboutsummaryrefslogtreecommitdiff
path: root/src/lib/gnsrecord/test_gnsrecord_crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/gnsrecord/test_gnsrecord_crypto.c')
-rw-r--r--src/lib/gnsrecord/test_gnsrecord_crypto.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/gnsrecord/test_gnsrecord_crypto.c b/src/lib/gnsrecord/test_gnsrecord_crypto.c
index ed5394e60..34f5f35e5 100644
--- a/src/lib/gnsrecord/test_gnsrecord_crypto.c
+++ b/src/lib/gnsrecord/test_gnsrecord_crypto.c
@@ -101,7 +101,7 @@ test_with_type (struct GNUNET_CRYPTO_PrivateKey *privkey)
101 struct GNUNET_HashCode query_priv; 101 struct GNUNET_HashCode query_priv;
102 struct GNUNET_HashCode query_block; 102 struct GNUNET_HashCode query_block;
103 struct GNUNET_TIME_Absolute expire = GNUNET_TIME_UNIT_FOREVER_ABS; 103 struct GNUNET_TIME_Absolute expire = GNUNET_TIME_UNIT_FOREVER_ABS;
104 104 char* tmp_data;
105 105
106 /* get public key */ 106 /* get public key */
107 GNUNET_CRYPTO_key_get_public (privkey, 107 GNUNET_CRYPTO_key_get_public (privkey,
@@ -143,7 +143,11 @@ test_with_type (struct GNUNET_CRYPTO_PrivateKey *privkey)
143 s_name, 143 s_name,
144 &rd_decrypt_cb, 144 &rd_decrypt_cb,
145 NULL)); 145 NULL));
146 for (int i = 0; i < RECORDS; i++) GNUNET_free(s_rd[i].data); 146 for (int i = 0; i < RECORDS; i++)
147 {
148 tmp_data = (char*) s_rd[i].data;
149 GNUNET_free(tmp_data);
150 }
147 GNUNET_free (s_rd); 151 GNUNET_free (s_rd);
148 GNUNET_free (block); 152 GNUNET_free (block);
149} 153}