diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-08-19 14:55:08 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-08-19 14:55:08 +0200 |
commit | cab256bfb4381c45f92a02790b2d30fdb3819d0b (patch) | |
tree | 09b45b3ef1330a9d772811bdc76b453b44bffaed | |
parent | b77ef665b0f3876f2c27db2d5a9b154fa1a9ba0d (diff) |
fix bad frees()
-rw-r--r-- | src/include/taler_merchant_service.h | 2 | ||||
-rw-r--r-- | src/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 index 771cfbec..d53500de 100644 --- 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 index 123ad5bb..e60987f0 100644 --- 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; } |