diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-06-22 18:11:25 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-06-22 18:11:25 +0200 |
commit | b381a3093df0751ff3b600e7566c437d523250a7 (patch) | |
tree | 7dc487afe79ab9cb9fa97e4e2a6a2c59dfb99f9d /src/mint | |
parent | 6d323a50d2387a74f5822d83cb81c45682eae478 (diff) | |
download | exchange-b381a3093df0751ff3b600e7566c437d523250a7.tar.xz |
fixing #3857
Diffstat (limited to 'src/mint')
-rw-r--r-- | src/mint/taler-mint-httpd_parsing.c | 7 |
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); + } } |