summaryrefslogtreecommitdiff
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)
}
attr = GNUNET_RECLAIM_attribute_new (name_str, NULL,
type, data, data_size);
+ GNUNET_free (data);
if ((NULL != cred_str) && (0 != strlen (cred_str)))
{
GNUNET_STRINGS_string_to_data (cred_str,
@@ -334,6 +335,7 @@ parse_credential (void *cls, json_t *root, struct GNUNET_JSON_Specification *spe
return GNUNET_SYSERR;
}
cred = GNUNET_RECLAIM_credential_new (name_str, type, data, data_size);
+ GNUNET_free (data);
if ((NULL == id_str) || (0 == strlen (id_str)))
memset (&cred->id, 0, sizeof (cred->id));
else