summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_tip_pickup2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant_api_tip_pickup2.c')
-rw-r--r--src/lib/merchant_api_tip_pickup2.c6
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;
}