fix memory leaks

This commit is contained in:
Christian Grothoff 2021-02-13 19:21:04 +01:00
parent 5e15bc6f28
commit 66aeb72ca9
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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);
}