bank-lib: fix context

This commit is contained in:
Florian Dold 2019-05-12 22:20:36 +02:00
parent 3709cded4b
commit 8868952735
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -41,7 +41,7 @@ struct TALER_BANK_AdminAddIncomingHandle
/** /**
* POST context. * POST context.
*/ */
struct TEAH_PostContext *post_ctx; struct TEAH_PostContext post_ctx;
/** /**
* Handle for the request. * Handle for the request.
@ -221,7 +221,7 @@ TALER_BANK_admin_add_incoming (struct GNUNET_CURL_Context *ctx,
eh = curl_easy_init (); eh = curl_easy_init ();
GNUNET_assert (GNUNET_OK == GNUNET_assert (GNUNET_OK ==
TEAH_curl_easy_post (aai->post_ctx, eh, admin_obj)); TEAH_curl_easy_post (&aai->post_ctx, eh, admin_obj));
json_decref (admin_obj); json_decref (admin_obj);
@ -253,6 +253,7 @@ TALER_BANK_admin_add_incoming_cancel (struct TALER_BANK_AdminAddIncomingHandle *
GNUNET_CURL_job_cancel (aai->job); GNUNET_CURL_job_cancel (aai->job);
aai->job = NULL; aai->job = NULL;
} }
TEAH_curl_easy_post_finished (&aai->post_ctx);
GNUNET_free (aai->request_url); GNUNET_free (aai->request_url);
GNUNET_free (aai); GNUNET_free (aai);
} }