From 02daf09b5348ffa894621f59ba0d3497a74ff669 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Thu, 6 Feb 2020 18:38:02 +0100 Subject: bugfixes --- src/reclaim/plugin_rest_reclaim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/reclaim/plugin_rest_reclaim.c') 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) GNUNET_free (handle->url); if (NULL != handle->emsg) GNUNET_free (handle->emsg); - GNUNET_RECLAIM_attribute_list_destroy (handle->attr_list); + if (NULL != handle->attr_list) + GNUNET_RECLAIM_attribute_list_destroy (handle->attr_list); for (ego_entry = handle->ego_head; NULL != ego_entry;) { ego_tmp = ego_entry; @@ -1029,6 +1030,7 @@ attr_collect (void *cls, json_array_append (handle->resp_object, attr_obj); json_decref (attr_obj); GNUNET_free (tmp_value); + GNUNET_RECLAIM_get_attributes_next (handle->attr_it); } -- cgit v1.2.3