merchant

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

commit cab256bfb4381c45f92a02790b2d30fdb3819d0b
parent b77ef665b0f3876f2c27db2d5a9b154fa1a9ba0d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 19 Aug 2020 14:55:08 +0200

fix bad frees()

Diffstat:
Msrc/include/taler_merchant_service.h | 2+-
Msrc/lib/merchant_api_common.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h @@ -179,7 +179,7 @@ struct TALER_MERCHANT_PayUriData * * @param pay_uri the URI to parse. * @param[out] parse_data data extracted from the URI. Must be free'd. - * @return GNUNET_SYSERR if @e pay_uri is malformed, GNUNET_OK otherwise. + * @return #GNUNET_SYSERR if @e pay_uri is malformed, #GNUNET_OK otherwise. */ int TALER_MERCHANT_parse_pay_uri (const char *pay_uri, diff --git a/src/lib/merchant_api_common.c b/src/lib/merchant_api_common.c @@ -289,7 +289,7 @@ TALER_MERCHANT_parse_pay_uri (const char *pay_uri, '='); if (NULL == ct_data) { - GNUNET_free (order_id); + GNUNET_free (path); return GNUNET_SYSERR; } *ct_data = '\0'; @@ -303,7 +303,7 @@ TALER_MERCHANT_parse_pay_uri (const char *pay_uri, claim_token, sizeof (*claim_token)))) { - GNUNET_free (order_id); + GNUNET_free (path); GNUNET_free (claim_token); return GNUNET_SYSERR; }