aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/plugin_rest_reclaim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/plugin_rest_reclaim.c')
-rw-r--r--src/reclaim/plugin_rest_reclaim.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/reclaim/plugin_rest_reclaim.c b/src/reclaim/plugin_rest_reclaim.c
index cddee9b54..cd163e8a4 100644
--- a/src/reclaim/plugin_rest_reclaim.c
+++ b/src/reclaim/plugin_rest_reclaim.c
@@ -275,7 +275,8 @@ cleanup_handle (struct RequestHandle *handle)
275 GNUNET_free (handle->url); 275 GNUNET_free (handle->url);
276 if (NULL != handle->emsg) 276 if (NULL != handle->emsg)
277 GNUNET_free (handle->emsg); 277 GNUNET_free (handle->emsg);
278 GNUNET_RECLAIM_attribute_list_destroy (handle->attr_list); 278 if (NULL != handle->attr_list)
279 GNUNET_RECLAIM_attribute_list_destroy (handle->attr_list);
279 for (ego_entry = handle->ego_head; NULL != ego_entry;) 280 for (ego_entry = handle->ego_head; NULL != ego_entry;)
280 { 281 {
281 ego_tmp = ego_entry; 282 ego_tmp = ego_entry;
@@ -1029,6 +1030,7 @@ attr_collect (void *cls,
1029 json_array_append (handle->resp_object, attr_obj); 1030 json_array_append (handle->resp_object, attr_obj);
1030 json_decref (attr_obj); 1031 json_decref (attr_obj);
1031 GNUNET_free (tmp_value); 1032 GNUNET_free (tmp_value);
1033 GNUNET_RECLAIM_get_attributes_next (handle->attr_it);
1032} 1034}
1033 1035
1034 1036