merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 273efea7f4d0aaa7c3f215eec8b14178a0d8a23d
parent e7ca4d8bf0eefc015b776c0c7678eda1656bef86
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Thu, 16 Jul 2026 02:06:32 +0200

fix leaks

Diffstat:
Msrc/backend/taler-merchant-httpd_delete-private-transfers-TID.c | 6+++---
Msrc/backend/taler-merchant-httpd_post-private-categories.c | 6------
2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_delete-private-transfers-TID.c b/src/backend/taler-merchant-httpd_delete-private-transfers-TID.c @@ -56,14 +56,14 @@ TMH_private_delete_transfers_ID (const struct TMH_RequestHandler *rh, case GNUNET_DB_STATUS_HARD_ERROR: return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_GENERIC_DB_COMMIT_FAILED, - NULL); + TALER_EC_GENERIC_DB_STORE_FAILED, + "delete_transfer"); case GNUNET_DB_STATUS_SOFT_ERROR: GNUNET_break (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE, - NULL); + "delete_transfer"); case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS: qs = TALER_MERCHANTDB_check_transfer_exists (TMH_db, mi->settings.id, diff --git a/src/backend/taler-merchant-httpd_post-private-categories.c b/src/backend/taler-merchant-httpd_post-private-categories.c @@ -77,12 +77,6 @@ TMH_private_post_categories (const struct TMH_RequestHandler *rh, oempty = json_object (); category_name_i18n = oempty; } - if (NULL == category_name_i18n) - { - /* NULL is not allowed in the DB, substitute with empty object */ - oempty = json_object (); - category_name_i18n = oempty; - } /* finally, interact with DB until no serialization error */ for (unsigned int i = 0; i<MAX_RETRIES; i++) {