diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-27 14:35:59 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-27 14:36:04 +0200 |
commit | 5017dacbdaac2d1654b01329f97b8b5b7dc34ba9 (patch) | |
tree | d94ef5b2741ca6655b80a6433bca34ef119c21f4 /src/mhd/mhd_responses.c | |
parent | 6761e2a997efbd76e412b6d6343aba3a14c9a703 (diff) | |
download | exchange-5017dacbdaac2d1654b01329f97b8b5b7dc34ba9.tar.xz |
-fix memory leak
Diffstat (limited to 'src/mhd/mhd_responses.c')
-rw-r--r-- | src/mhd/mhd_responses.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mhd/mhd_responses.c b/src/mhd/mhd_responses.c index 6b96de55d..b7ff52e66 100644 --- a/src/mhd/mhd_responses.c +++ b/src/mhd/mhd_responses.c @@ -220,6 +220,21 @@ TALER_MHD_reply_json (struct MHD_Connection *connection, MHD_RESULT +TALER_MHD_reply_json_steal (struct MHD_Connection *connection, + json_t *json, + unsigned int response_code) +{ + MHD_RESULT ret; + + ret = TALER_MHD_reply_json (connection, + json, + response_code); + json_decref (json); + return ret; +} + + +MHD_RESULT TALER_MHD_reply_cors_preflight (struct MHD_Connection *connection) { struct MHD_Response *response; |