From b381a3093df0751ff3b600e7566c437d523250a7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 22 Jun 2015 18:11:25 +0200 Subject: [PATCH] fixing #3857 --- src/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 index a1c189176..15c7215ea 100644 --- 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); + } }