fix leak
This commit is contained in:
parent
e62fd9d654
commit
38bd274682
@ -805,19 +805,16 @@ TMH_PARSE_navigate_json (struct MHD_Connection *connection,
|
|||||||
TMH_mint_currency_string))
|
TMH_mint_currency_string))
|
||||||
{
|
{
|
||||||
GNUNET_break_op (0);
|
GNUNET_break_op (0);
|
||||||
if (MHD_YES !=
|
ret = (MHD_YES !=
|
||||||
TMH_RESPONSE_reply_json_pack (connection,
|
TMH_RESPONSE_reply_json_pack (connection,
|
||||||
MHD_HTTP_BAD_REQUEST,
|
MHD_HTTP_BAD_REQUEST,
|
||||||
"{s:s, s:O, s:s}",
|
"{s:s, s:O, s:s}",
|
||||||
"error", "Currency not supported",
|
"error", "Currency not supported",
|
||||||
"path", path,
|
"path", path,
|
||||||
"currency", where->currency))
|
"currency", where->currency))
|
||||||
{
|
? GNUNET_SYSERR : GNUNET_NO;
|
||||||
memset (where, 0, sizeof (struct TALER_Amount));
|
memset (where, 0, sizeof (struct TALER_Amount));
|
||||||
return GNUNET_SYSERR;
|
break;
|
||||||
}
|
|
||||||
memset (where, 0, sizeof (struct TALER_Amount));
|
|
||||||
return GNUNET_NO;
|
|
||||||
}
|
}
|
||||||
ret = GNUNET_OK;
|
ret = GNUNET_OK;
|
||||||
break;
|
break;
|
||||||
@ -832,15 +829,15 @@ TMH_PARSE_navigate_json (struct MHD_Connection *connection,
|
|||||||
where))
|
where))
|
||||||
{
|
{
|
||||||
GNUNET_break_op (0);
|
GNUNET_break_op (0);
|
||||||
if (MHD_YES !=
|
ret = (MHD_YES !=
|
||||||
TMH_RESPONSE_reply_json_pack (connection,
|
TMH_RESPONSE_reply_json_pack (connection,
|
||||||
MHD_HTTP_BAD_REQUEST,
|
MHD_HTTP_BAD_REQUEST,
|
||||||
"{s:s, s:s, s:O}",
|
"{s:s, s:s, s:O}",
|
||||||
"error", "Bad format",
|
"error", "Bad format",
|
||||||
"hint", "expected absolute time",
|
"hint", "expected absolute time",
|
||||||
"path", path))
|
"path", path))
|
||||||
return GNUNET_SYSERR;
|
? GNUNET_SYSERR : GNUNET_NO;
|
||||||
return GNUNET_NO;
|
break;
|
||||||
}
|
}
|
||||||
ret = GNUNET_OK;
|
ret = GNUNET_OK;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user