summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-22 18:11:25 +0200
committerChristian Grothoff <christian@grothoff.org>2015-06-22 18:11:25 +0200
commitb381a3093df0751ff3b600e7566c437d523250a7 (patch)
tree7dc487afe79ab9cb9fa97e4e2a6a2c59dfb99f9d /src
parent6d323a50d2387a74f5822d83cb81c45682eae478 (diff)
downloadexchange-b381a3093df0751ff3b600e7566c437d523250a7.tar.gz
exchange-b381a3093df0751ff3b600e7566c437d523250a7.tar.bz2
exchange-b381a3093df0751ff3b600e7566c437d523250a7.zip
fixing #3857
Diffstat (limited to 'src')
-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);
+ }
}