summaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/test_namestore_api_create.c')
-rw-r--r--src/namestore/test_namestore_api_create.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_api_create.c b/src/namestore/test_namestore_api_create.c
index 583f78a01..63e403c06 100644
--- a/src/namestore/test_namestore_api_create.c
+++ b/src/namestore/test_namestore_api_create.c
@@ -84,6 +84,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
84 if (privkey != NULL) 84 if (privkey != NULL)
85 GNUNET_CRYPTO_rsa_key_free (privkey); 85 GNUNET_CRYPTO_rsa_key_free (privkey);
86 privkey = NULL; 86 privkey = NULL;
87 GNUNET_free_non_null (s_name);
87 res = 1; 88 res = 1;
88} 89}
89 90
@@ -99,6 +100,7 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
99 GNUNET_free ((void *) s_first_record->data); 100 GNUNET_free ((void *) s_first_record->data);
100 GNUNET_free (s_first_record); 101 GNUNET_free (s_first_record);
101 GNUNET_free_non_null (s_second_record); 102 GNUNET_free_non_null (s_second_record);
103 GNUNET_free_non_null (s_name);
102 if (privkey != NULL) 104 if (privkey != NULL)
103 GNUNET_CRYPTO_rsa_key_free (privkey); 105 GNUNET_CRYPTO_rsa_key_free (privkey);
104 privkey = NULL; 106 privkey = NULL;
@@ -361,7 +363,7 @@ run (void *cls,
361 GNUNET_CRYPTO_rsa_key_get_public(privkey, &pubkey); 363 GNUNET_CRYPTO_rsa_key_get_public(privkey, &pubkey);
362 364
363 /* create record */ 365 /* create record */
364 s_name = "dummy.dummy.gnunet"; 366 s_name = GNUNET_NAMESTORE_normalize_string ("DUMMY.dummy.gnunet");
365 s_first_record = create_record (1); 367 s_first_record = create_record (1);
366 368
367 rd_ser_len = GNUNET_NAMESTORE_records_get_size(1, s_first_record); 369 rd_ser_len = GNUNET_NAMESTORE_records_get_size(1, s_first_record);