diff options
Diffstat (limited to 'src/namestore/test_namestore_api_remove_not_existing_record.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove_not_existing_record.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c index 472ddbdfe..54a273b9b 100644 --- a/src/namestore/test_namestore_api_remove_not_existing_record.c +++ b/src/namestore/test_namestore_api_remove_not_existing_record.c | |||
@@ -79,6 +79,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
79 | if (privkey != NULL) | 79 | if (privkey != NULL) |
80 | GNUNET_CRYPTO_rsa_key_free (privkey); | 80 | GNUNET_CRYPTO_rsa_key_free (privkey); |
81 | privkey = NULL; | 81 | privkey = NULL; |
82 | GNUNET_free_non_null (s_name); | ||
82 | res = 1; | 83 | res = 1; |
83 | } | 84 | } |
84 | 85 | ||
@@ -103,6 +104,7 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
103 | if (nsh != NULL) | 104 | if (nsh != NULL) |
104 | GNUNET_NAMESTORE_disconnect (nsh); | 105 | GNUNET_NAMESTORE_disconnect (nsh); |
105 | nsh = NULL; | 106 | nsh = NULL; |
107 | GNUNET_free_non_null (s_name); | ||
106 | } | 108 | } |
107 | 109 | ||
108 | 110 | ||
@@ -195,7 +197,7 @@ run (void *cls, | |||
195 | GNUNET_CRYPTO_rsa_key_get_public(privkey, &pubkey); | 197 | GNUNET_CRYPTO_rsa_key_get_public(privkey, &pubkey); |
196 | 198 | ||
197 | /* create record */ | 199 | /* create record */ |
198 | s_name = "dummy.dummy.gnunet"; | 200 | s_name = GNUNET_NAMESTORE_normalize_string ("DUMMY.dummy.gnunet"); |
199 | s_rd = create_record (RECORDS); | 201 | s_rd = create_record (RECORDS); |
200 | 202 | ||
201 | rd_ser_len = GNUNET_NAMESTORE_records_get_size(RECORDS, s_rd); | 203 | rd_ser_len = GNUNET_NAMESTORE_records_get_size(RECORDS, s_rd); |