KYC: fix API call and memory leak

This commit is contained in:
Christian Grothoff 2023-01-28 17:45:56 +01:00
parent 92f16aad51
commit 99753a5d31
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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,