diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-01-28 17:45:56 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-01-28 17:45:56 +0100 |
commit | 99753a5d31868af36285418ed317eeef50921b67 (patch) | |
tree | 855e64ee92d3f9e185629b9f779aa3340c22d71b /src/kyclogic/plugin_kyclogic_kycaid.c | |
parent | 92f16aad515cd15834ece7bad4d526d38dd3e4fb (diff) | |
download | exchange-99753a5d31868af36285418ed317eeef50921b67.tar.xz |
KYC: fix API call and memory leak
Diffstat (limited to 'src/kyclogic/plugin_kyclogic_kycaid.c')
-rw-r--r-- | src/kyclogic/plugin_kyclogic_kycaid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kyclogic/plugin_kyclogic_kycaid.c b/src/kyclogic/plugin_kyclogic_kycaid.c index 6ea1740e1..3273a51f1 100644 --- 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, |