mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-21 13:34:59 +02:00
we were leaking some memory every time the client changes IPs
svn:r5165
This commit is contained in:
parent
ab245746a9
commit
e28c31ebce
@ -95,6 +95,8 @@ get_onion_key_set_at(void)
|
|||||||
void
|
void
|
||||||
set_identity_key(crypto_pk_env_t *k)
|
set_identity_key(crypto_pk_env_t *k)
|
||||||
{
|
{
|
||||||
|
if (identitykey)
|
||||||
|
crypto_free_pk_env(identitykey);
|
||||||
identitykey = k;
|
identitykey = k;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user