diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-06-04 13:26:00 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-06-04 13:26:00 +0200 |
commit | 809300158caaa0215c36ef89c7e38f0edfa93593 (patch) | |
tree | 1faf7e314af34db7a2333d8003ee0ed6fca91d74 /src/lib/exchange_api_lookup_aml_decisions.c | |
parent | 9718bc4920ab4781378b777bf3e2af275c8d0575 (diff) | |
download | exchange-809300158caaa0215c36ef89c7e38f0edfa93593.tar.gz exchange-809300158caaa0215c36ef89c7e38f0edfa93593.tar.bz2 exchange-809300158caaa0215c36ef89c7e38f0edfa93593.zip |
code cleanup, fixing misc. memory leaks in the process
Diffstat (limited to 'src/lib/exchange_api_lookup_aml_decisions.c')
-rw-r--r-- | src/lib/exchange_api_lookup_aml_decisions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/exchange_api_lookup_aml_decisions.c b/src/lib/exchange_api_lookup_aml_decisions.c index 403acb54a..22222b1e4 100644 --- a/src/lib/exchange_api_lookup_aml_decisions.c +++ b/src/lib/exchange_api_lookup_aml_decisions.c @@ -123,10 +123,10 @@ parse_decisions_ok (struct TALER_EXCHANGE_LookupAmlDecisions *lh, .hr.reply = json, .hr.http_status = MHD_HTTP_OK }; - json_t *records; + const json_t *records; struct GNUNET_JSON_Specification spec[] = { - GNUNET_JSON_spec_json ("records", - &records), + GNUNET_JSON_spec_array_const ("records", + &records), GNUNET_JSON_spec_end () }; |