fix leak
This commit is contained in:
parent
66aeb72ca9
commit
7c588d0bc7
@ -343,6 +343,7 @@ TEH_handler_management_post_keys (
|
|||||||
json_is_array (signkey_sigs)) )
|
json_is_array (signkey_sigs)) )
|
||||||
{
|
{
|
||||||
GNUNET_break_op (0);
|
GNUNET_break_op (0);
|
||||||
|
GNUNET_JSON_parse_free (spec);
|
||||||
return TALER_MHD_reply_with_error (
|
return TALER_MHD_reply_with_error (
|
||||||
connection,
|
connection,
|
||||||
MHD_HTTP_BAD_REQUEST,
|
MHD_HTTP_BAD_REQUEST,
|
||||||
@ -385,6 +386,7 @@ TEH_handler_management_post_keys (
|
|||||||
if (! ok)
|
if (! ok)
|
||||||
{
|
{
|
||||||
GNUNET_free (akc.d_sigs);
|
GNUNET_free (akc.d_sigs);
|
||||||
|
GNUNET_JSON_parse_free (spec);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
akc.ns_sigs = json_array_size (signkey_sigs);
|
akc.ns_sigs = json_array_size (signkey_sigs);
|
||||||
@ -423,6 +425,7 @@ TEH_handler_management_post_keys (
|
|||||||
{
|
{
|
||||||
GNUNET_free (akc.d_sigs);
|
GNUNET_free (akc.d_sigs);
|
||||||
GNUNET_free (akc.s_sigs);
|
GNUNET_free (akc.s_sigs);
|
||||||
|
GNUNET_JSON_parse_free (spec);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
@ -436,6 +439,7 @@ TEH_handler_management_post_keys (
|
|||||||
&akc);
|
&akc);
|
||||||
GNUNET_free (akc.d_sigs);
|
GNUNET_free (akc.d_sigs);
|
||||||
GNUNET_free (akc.s_sigs);
|
GNUNET_free (akc.s_sigs);
|
||||||
|
GNUNET_JSON_parse_free (spec);
|
||||||
if (qs < 0)
|
if (qs < 0)
|
||||||
return ret;
|
return ret;
|
||||||
TEH_keys_update_states ();
|
TEH_keys_update_states ();
|
||||||
|
Loading…
Reference in New Issue
Block a user