aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/plugin_rest_reclaim.c
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2020-02-06 18:38:02 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-02-09 20:38:11 +0100
commit02daf09b5348ffa894621f59ba0d3497a74ff669 (patch)
tree1a6bb5d7ae751808c8e93c349ac4ba73d00b9aa7 /src/reclaim/plugin_rest_reclaim.c
parent5fb277e8d012d687f4d2d032571cd4b57946bbfb (diff)
downloadgnunet-02daf09b5348ffa894621f59ba0d3497a74ff669.tar.gz
gnunet-02daf09b5348ffa894621f59ba0d3497a74ff669.zip
bugfixes
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