fix memory leaks
This commit is contained in:
parent
5e15bc6f28
commit
66aeb72ca9
@ -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,
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user