summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_post_transfers.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-19 11:43:40 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-19 11:43:40 +0100
commit61c6cb27442aed0b45cf31f8a69183b1c39e9a13 (patch)
tree0bd4be7427bc0fcff3dcad24ab55480c93a03a24 /src/lib/merchant_api_post_transfers.c
parent39e6ebbc169a250b6ae11928f5ce58696f09f19f (diff)
downloadmerchant-61c6cb27442aed0b45cf31f8a69183b1c39e9a13.tar.gz
merchant-61c6cb27442aed0b45cf31f8a69183b1c39e9a13.tar.bz2
merchant-61c6cb27442aed0b45cf31f8a69183b1c39e9a13.zip
-fix misc bugs
Diffstat (limited to 'src/lib/merchant_api_post_transfers.c')
-rw-r--r--src/lib/merchant_api_post_transfers.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/merchant_api_post_transfers.c b/src/lib/merchant_api_post_transfers.c
index 62984835..488b0a7c 100644
--- a/src/lib/merchant_api_post_transfers.c
+++ b/src/lib/merchant_api_post_transfers.c
@@ -311,11 +311,13 @@ TALER_MERCHANT_transfers_post (
exchange_url));
eh = curl_easy_init ();
GNUNET_assert (NULL != eh);
- if (GNUNET_OK != TALER_curl_easy_post (&pth->post_ctx,
- eh,
- req))
+ if (GNUNET_OK !=
+ TALER_curl_easy_post (&pth->post_ctx,
+ eh,
+ req))
{
GNUNET_break (0);
+ curl_easy_cleanup (eh);
json_decref (req);
GNUNET_free (pth);
return NULL;