commit 6f9a1e350dba496e6f311816e7f64771a225a987
parent 2ed07fa12d6b38038b903351f767cfc669cdb244
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 2 Jun 2026 21:00:00 +0200
fix leak and EC
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/donau/donau-httpd_get-charities.c b/src/donau/donau-httpd_get-charities.c
@@ -105,6 +105,7 @@ DH_handler_get_charities (
TALER_EC_GENERIC_DB_FETCH_FAILED,
NULL);
case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
+ json_decref (charities);
return TALER_MHD_reply_static (
rc->connection,
MHD_HTTP_NO_CONTENT,
diff --git a/src/donau/donau-httpd_post-batch-issue-CHARITY_ID.c b/src/donau/donau-httpd_post-batch-issue-CHARITY_ID.c
@@ -421,7 +421,7 @@ start:
bkps);
json_decref (blind_signatures);
return TALER_MHD_reply_with_error (rc->connection,
- MHD_HTTP_CONFLICT,
+ MHD_HTTP_TOO_EARLY,
TALER_EC_DONAU_GENERIC_DONATION_UNIT_TOO_EARLY,
year_str);
}