diff options
Diffstat (limited to 'src/reclaim/plugin_rest_reclaim.c')
-rw-r--r-- | src/reclaim/plugin_rest_reclaim.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/reclaim/plugin_rest_reclaim.c b/src/reclaim/plugin_rest_reclaim.c index 16286444a..70defae3d 100644 --- a/src/reclaim/plugin_rest_reclaim.c +++ b/src/reclaim/plugin_rest_reclaim.c | |||
@@ -276,6 +276,8 @@ cleanup_handle (struct RequestHandle *handle) | |||
276 | claim_tmp = claim_entry; | 276 | claim_tmp = claim_entry; |
277 | claim_entry = claim_entry->next; | 277 | claim_entry = claim_entry->next; |
278 | GNUNET_free (claim_tmp->claim); | 278 | GNUNET_free (claim_tmp->claim); |
279 | GNUNET_free (claim_tmp->attest); | ||
280 | GNUNET_free (claim_tmp->reference); | ||
279 | GNUNET_free (claim_tmp); | 281 | GNUNET_free (claim_tmp); |
280 | } | 282 | } |
281 | GNUNET_free (handle->attr_list); | 283 | GNUNET_free (handle->attr_list); |
@@ -1286,6 +1288,7 @@ attr_collect (void *cls, | |||
1286 | return; | 1288 | return; |
1287 | } | 1289 | } |
1288 | char *tmp_value; | 1290 | char *tmp_value; |
1291 | char *flag_str; | ||
1289 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Adding attribute: %s\n", attr->name); | 1292 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Adding attribute: %s\n", attr->name); |
1290 | 1293 | ||
1291 | tmp_value = GNUNET_RECLAIM_ATTRIBUTE_value_to_string (attr->type, | 1294 | tmp_value = GNUNET_RECLAIM_ATTRIBUTE_value_to_string (attr->type, |
@@ -1295,6 +1298,8 @@ attr_collect (void *cls, | |||
1295 | attr_obj = json_object (); | 1298 | attr_obj = json_object (); |
1296 | json_object_set_new (attr_obj, "value", json_string (tmp_value)); | 1299 | json_object_set_new (attr_obj, "value", json_string (tmp_value)); |
1297 | json_object_set_new (attr_obj, "name", json_string (attr->name)); | 1300 | json_object_set_new (attr_obj, "name", json_string (attr->name)); |
1301 | GNUNET_asprintf (&flag_str,"%d",attr->flag); | ||
1302 | json_object_set_new (attr_obj, "flag", json_string (flag_str)); | ||
1298 | type = GNUNET_RECLAIM_ATTRIBUTE_number_to_typename (attr->type); | 1303 | type = GNUNET_RECLAIM_ATTRIBUTE_number_to_typename (attr->type); |
1299 | json_object_set_new (attr_obj, "type", json_string (type)); | 1304 | json_object_set_new (attr_obj, "type", json_string (type)); |
1300 | id_str = GNUNET_STRINGS_data_to_string_alloc (&attr->id, sizeof(uint64_t)); | 1305 | id_str = GNUNET_STRINGS_data_to_string_alloc (&attr->id, sizeof(uint64_t)); |