fix leak
This commit is contained in:
parent
3a8581bc5e
commit
a3d272eb9d
@ -961,6 +961,7 @@ decode_keys_json (const json_t *resp_obj,
|
|||||||
/* Okay, but why breaking here? It could be that the
|
/* Okay, but why breaking here? It could be that the
|
||||||
* user redownloaded all the keys in a forced way. */
|
* user redownloaded all the keys in a forced way. */
|
||||||
GNUNET_break_op (0 == current);
|
GNUNET_break_op (0 == current);
|
||||||
|
GNUNET_CRYPTO_rsa_public_key_free (dk.key.rsa_public_key);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (key_data->denom_keys_size == key_data->num_denom_keys)
|
if (key_data->denom_keys_size == key_data->num_denom_keys)
|
||||||
|
@ -44,7 +44,7 @@ struct SerializeKeysState
|
|||||||
* from, after keys serialization. This value is then needed by
|
* from, after keys serialization. This value is then needed by
|
||||||
* subsequent commands that have to reconnect to the exchagne.
|
* subsequent commands that have to reconnect to the exchagne.
|
||||||
*/
|
*/
|
||||||
const char *exchange_url;
|
char *exchange_url;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ serialize_keys_cleanup (void *cls,
|
|||||||
{
|
{
|
||||||
json_decref (sks->keys);
|
json_decref (sks->keys);
|
||||||
}
|
}
|
||||||
GNUNET_free ((char *) sks->exchange_url);
|
GNUNET_free (sks->exchange_url);
|
||||||
GNUNET_free (sks);
|
GNUNET_free (sks);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user