exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit b381a3093df0751ff3b600e7566c437d523250a7
parent 6d323a50d2387a74f5822d83cb81c45682eae478
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 22 Jun 2015 18:11:25 +0200

fixing #3857

Diffstat:
Msrc/mint/taler-mint-httpd_parsing.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/mint/taler-mint-httpd_parsing.c b/src/mint/taler-mint-httpd_parsing.c @@ -226,8 +226,6 @@ TMH_PARSE_post_json (struct MHD_Connection *connection, r->fill, 0, NULL); - buffer_deinit (r); - GNUNET_free (r); if (NULL == *json) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, @@ -236,6 +234,8 @@ TMH_PARSE_post_json (struct MHD_Connection *connection, TMH_RESPONSE_reply_invalid_json (connection)) ? GNUNET_NO : GNUNET_SYSERR; } + buffer_deinit (r); + GNUNET_free (r); *con_cls = NULL; return GNUNET_YES; @@ -255,7 +255,10 @@ TMH_PARSE_post_cleanup_callback (void *con_cls) struct Buffer *r = con_cls; if (NULL != r) + { buffer_deinit (r); + GNUNET_free (r); + } }