summaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_parsing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mint/taler-mint-httpd_parsing.c')
-rw-r--r--src/mint/taler-mint-httpd_parsing.c7
1 files 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);
+ }
}