summaryrefslogtreecommitdiff
path: root/src/mhd
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-27 16:17:45 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-27 16:17:45 +0200
commit5026518bb5a6c47b9278eede81989ca0fba7094a (patch)
tree2fab84462e22f05ce0dec738aec28391268e0ea8 /src/mhd
parent5017dacbdaac2d1654b01329f97b8b5b7dc34ba9 (diff)
downloadexchange-5026518bb5a6c47b9278eede81989ca0fba7094a.tar.gz
exchange-5026518bb5a6c47b9278eede81989ca0fba7094a.tar.bz2
exchange-5026518bb5a6c47b9278eede81989ca0fba7094a.zip
-fix another leak
Diffstat (limited to 'src/mhd')
-rw-r--r--src/mhd/mhd_responses.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mhd/mhd_responses.c b/src/mhd/mhd_responses.c
index b7ff52e66..c993436cd 100644
--- a/src/mhd/mhd_responses.c
+++ b/src/mhd/mhd_responses.c
@@ -148,6 +148,17 @@ TALER_MHD_make_json (const json_t *json)
}
+struct MHD_Response *
+TALER_MHD_make_json_steal (json_t *json)
+{
+ struct MHD_Response *res;
+
+ res = TALER_MHD_make_json (json);
+ json_decref (json);
+ return res;
+}
+
+
MHD_RESULT
TALER_MHD_reply_json (struct MHD_Connection *connection,
const json_t *json,