diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-08 18:53:17 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-08 18:53:17 +0100 |
commit | cdb3274dad03f6362e1e20a510bac950eef1628d (patch) | |
tree | c3edfd49a7d91f06ae463393c1b32562c0026b02 /src/lib/merchant_api_tip_pickup2.c | |
parent | a08a12d3c583183589306e7913d2f99a3ad26e54 (diff) | |
download | merchant-cdb3274dad03f6362e1e20a510bac950eef1628d.tar.gz merchant-cdb3274dad03f6362e1e20a510bac950eef1628d.tar.bz2 merchant-cdb3274dad03f6362e1e20a510bac950eef1628d.zip |
fix minor merchant issues
Diffstat (limited to 'src/lib/merchant_api_tip_pickup2.c')
-rw-r--r-- | src/lib/merchant_api_tip_pickup2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/merchant_api_tip_pickup2.c b/src/lib/merchant_api_tip_pickup2.c index f32a6feb..946d961e 100644 --- a/src/lib/merchant_api_tip_pickup2.c +++ b/src/lib/merchant_api_tip_pickup2.c @@ -316,6 +316,7 @@ TALER_MERCHANT_tip_pickup2 (struct GNUNET_CURL_Context *ctx, { GNUNET_break (0); json_decref (tp_obj); + GNUNET_free (tpo->url); GNUNET_free (tpo); return NULL; } @@ -333,6 +334,11 @@ TALER_MERCHANT_tip_pickup2 (struct GNUNET_CURL_Context *ctx, tpo->post_ctx.headers, &handle_tip_pickup_finished, tpo); + if (NULL == tpo->job) + { + TALER_MERCHANT_tip_pickup2_cancel (tpo); + return NULL; + } return tpo; } |