commit 99753a5d31868af36285418ed317eeef50921b67
parent 92f16aad515cd15834ece7bad4d526d38dd3e4fb
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 28 Jan 2023 17:45:56 +0100
KYC: fix API call and memory leak
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/kyclogic/plugin_kyclogic_kycaid.c b/src/kyclogic/plugin_kyclogic_kycaid.c
@@ -588,6 +588,7 @@ kycaid_initiate (void *cls,
json_decref (body);
return NULL;
}
+ json_decref (body);
ih->job = GNUNET_CURL_job_add2 (ps->curl_ctx,
eh,
ih->ctx.headers,
@@ -1382,7 +1383,7 @@ kycaid_webhook (void *cls,
GNUNET_asprintf (&wh->url,
"https://api.kycaid.com/applicants/%s",
- verification_id);
+ applicant_id);
GNUNET_break (CURLE_OK ==
curl_easy_setopt (eh,
CURLOPT_VERBOSE,