fix fakebank memory leak
This commit is contained in:
parent
c300b88af2
commit
bc7957f393
@ -832,8 +832,8 @@ handle_history (struct TALER_FAKEBANK_Handle *h,
|
|||||||
"wt_subject", subject);
|
"wt_subject", subject);
|
||||||
GNUNET_assert (NULL != trans);
|
GNUNET_assert (NULL != trans);
|
||||||
GNUNET_free (subject);
|
GNUNET_free (subject);
|
||||||
GNUNET_assert (0 == json_array_append (history,
|
GNUNET_assert (0 == json_array_append_new (history,
|
||||||
trans));
|
trans));
|
||||||
if (count > 0)
|
if (count > 0)
|
||||||
{
|
{
|
||||||
pos = pos->next;
|
pos = pos->next;
|
||||||
|
@ -570,12 +570,15 @@ handle_reserve_status_finished (void *cls,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (NULL != rsh->cb)
|
if (NULL != rsh->cb)
|
||||||
|
{
|
||||||
rsh->cb (rsh->cb_cls,
|
rsh->cb (rsh->cb_cls,
|
||||||
response_code,
|
response_code,
|
||||||
TALER_JSON_get_error_code (json),
|
TALER_JSON_get_error_code (json),
|
||||||
json,
|
json,
|
||||||
NULL,
|
NULL,
|
||||||
0, NULL);
|
0, NULL);
|
||||||
|
rsh->cb = NULL;
|
||||||
|
}
|
||||||
TALER_EXCHANGE_reserve_status_cancel (rsh);
|
TALER_EXCHANGE_reserve_status_cancel (rsh);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -745,7 +748,8 @@ reserve_withdraw_ok (struct TALER_EXCHANGE_ReserveWithdrawHandle *wsh,
|
|||||||
struct GNUNET_CRYPTO_RsaSignature *blind_sig;
|
struct GNUNET_CRYPTO_RsaSignature *blind_sig;
|
||||||
struct TALER_FreshCoin fc;
|
struct TALER_FreshCoin fc;
|
||||||
struct GNUNET_JSON_Specification spec[] = {
|
struct GNUNET_JSON_Specification spec[] = {
|
||||||
GNUNET_JSON_spec_rsa_signature ("ev_sig", &blind_sig),
|
GNUNET_JSON_spec_rsa_signature ("ev_sig",
|
||||||
|
&blind_sig),
|
||||||
GNUNET_JSON_spec_end()
|
GNUNET_JSON_spec_end()
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -961,11 +965,14 @@ handle_reserve_withdraw_finished (void *cls,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (NULL != wsh->cb)
|
if (NULL != wsh->cb)
|
||||||
|
{
|
||||||
wsh->cb (wsh->cb_cls,
|
wsh->cb (wsh->cb_cls,
|
||||||
response_code,
|
response_code,
|
||||||
TALER_JSON_get_error_code (json),
|
TALER_JSON_get_error_code (json),
|
||||||
NULL,
|
NULL,
|
||||||
json);
|
json);
|
||||||
|
wsh->cb = NULL;
|
||||||
|
}
|
||||||
TALER_EXCHANGE_reserve_withdraw_cancel (wsh);
|
TALER_EXCHANGE_reserve_withdraw_cancel (wsh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user