summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-02-13 19:21:04 +0100
committerChristian Grothoff <christian@grothoff.org>2021-02-13 19:21:04 +0100
commit66aeb72ca95ed0a89d8c129ea4ec66d8c8a66140 (patch)
tree48f037f33b2b0707df2ef19528fab4881ea13050
parent5e15bc6f285d42f31f48b63d0eaced6768b910c1 (diff)
downloadexchange-66aeb72ca95ed0a89d8c129ea4ec66d8c8a66140.tar.gz
exchange-66aeb72ca95ed0a89d8c129ea4ec66d8c8a66140.tar.bz2
exchange-66aeb72ca95ed0a89d8c129ea4ec66d8c8a66140.zip
fix memory leaks
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c4
-rw-r--r--src/exchange/taler-exchange-httpd_wire.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
index 910b47a6..9245c812 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -2461,11 +2461,11 @@ TEH_keys_management_get_handler (const struct TEH_RequestHandler *rh,
TALER_EC_GENERIC_JSON_ALLOCATION_FAILURE,
NULL);
GNUNET_assert (NULL == ksh->management_keys_reply);
- ksh->management_keys_reply = json_incref (reply);
+ ksh->management_keys_reply = reply;
}
else
{
- reply = json_incref (ksh->management_keys_reply);
+ reply = ksh->management_keys_reply;
}
return TALER_MHD_reply_json (connection,
reply,
diff --git a/src/exchange/taler-exchange-httpd_wire.c b/src/exchange/taler-exchange-httpd_wire.c
index 8f78f3b6..20fecd49 100644
--- a/src/exchange/taler-exchange-httpd_wire.c
+++ b/src/exchange/taler-exchange-httpd_wire.c
@@ -372,7 +372,7 @@ TEH_handler_wire (const struct TEH_RequestHandler *rh,
TALER_EC_EXCHANGE_GENERIC_BAD_CONFIGURATION,
NULL);
return TALER_MHD_reply_json (connection,
- json_incref (wsh->wire_reply),
+ wsh->wire_reply,
MHD_HTTP_OK);
}