diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2020-12-27 21:43:47 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2020-12-27 21:43:47 +0900 |
commit | 7b32281b71e450827ff90f00451f5e5e98c0521e (patch) | |
tree | da46c45025d48462e6d9139bf2fe5c407df95c32 /src/reclaim/plugin_rest_reclaim.c | |
parent | 75a3a90fb765da872383b8f85b2d4087186dc3db (diff) | |
download | gnunet-7b32281b71e450827ff90f00451f5e5e98c0521e.tar.gz gnunet-7b32281b71e450827ff90f00451f5e5e98c0521e.zip |
-hunting memleaks
Diffstat (limited to 'src/reclaim/plugin_rest_reclaim.c')
-rw-r--r-- | src/reclaim/plugin_rest_reclaim.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reclaim/plugin_rest_reclaim.c b/src/reclaim/plugin_rest_reclaim.c index 022744c82..84456b386 100644 --- a/src/reclaim/plugin_rest_reclaim.c +++ b/src/reclaim/plugin_rest_reclaim.c | |||
@@ -974,9 +974,11 @@ attr_collect (void *cls, | |||
974 | id_str = GNUNET_STRINGS_data_to_string_alloc (&attr->id, | 974 | id_str = GNUNET_STRINGS_data_to_string_alloc (&attr->id, |
975 | sizeof(attr->id)); | 975 | sizeof(attr->id)); |
976 | json_object_set_new (attr_obj, "id", json_string (id_str)); | 976 | json_object_set_new (attr_obj, "id", json_string (id_str)); |
977 | GNUNET_free (id_str); | ||
977 | id_str = GNUNET_STRINGS_data_to_string_alloc (&attr->credential, | 978 | id_str = GNUNET_STRINGS_data_to_string_alloc (&attr->credential, |
978 | sizeof(attr->credential)); | 979 | sizeof(attr->credential)); |
979 | json_object_set_new (attr_obj, "credential", json_string (id_str)); | 980 | json_object_set_new (attr_obj, "credential", json_string (id_str)); |
981 | GNUNET_free (id_str); | ||
980 | json_array_append (handle->resp_object, attr_obj); | 982 | json_array_append (handle->resp_object, attr_obj); |
981 | json_decref (attr_obj); | 983 | json_decref (attr_obj); |
982 | GNUNET_free (tmp_value); | 984 | GNUNET_free (tmp_value); |