aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/json_reclaim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/json_reclaim.c')
-rw-r--r--src/reclaim/json_reclaim.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reclaim/json_reclaim.c b/src/reclaim/json_reclaim.c
index 6c945036a..4eeb22bee 100644
--- a/src/reclaim/json_reclaim.c
+++ b/src/reclaim/json_reclaim.c
@@ -95,6 +95,7 @@ parse_attr (void *cls, json_t *root, struct GNUNET_JSON_Specification *spec)
95 } 95 }
96 attr = GNUNET_RECLAIM_attribute_new (name_str, NULL, 96 attr = GNUNET_RECLAIM_attribute_new (name_str, NULL,
97 type, data, data_size); 97 type, data, data_size);
98 GNUNET_free (data);
98 if ((NULL != cred_str) && (0 != strlen (cred_str))) 99 if ((NULL != cred_str) && (0 != strlen (cred_str)))
99 { 100 {
100 GNUNET_STRINGS_string_to_data (cred_str, 101 GNUNET_STRINGS_string_to_data (cred_str,
@@ -334,6 +335,7 @@ parse_credential (void *cls, json_t *root, struct GNUNET_JSON_Specification *spe
334 return GNUNET_SYSERR; 335 return GNUNET_SYSERR;
335 } 336 }
336 cred = GNUNET_RECLAIM_credential_new (name_str, type, data, data_size); 337 cred = GNUNET_RECLAIM_credential_new (name_str, type, data, data_size);
338 GNUNET_free (data);
337 if ((NULL == id_str) || (0 == strlen (id_str))) 339 if ((NULL == id_str) || (0 == strlen (id_str)))
338 memset (&cred->id, 0, sizeof (cred->id)); 340 memset (&cred->id, 0, sizeof (cred->id));
339 else 341 else