we were leaking some memory every time the client changes IPs

svn:r5165
This commit is contained in:
Roger Dingledine 2005-09-30 06:03:04 +00:00
parent ab245746a9
commit e28c31ebce

View File

@ -95,6 +95,8 @@ get_onion_key_set_at(void)
void
set_identity_key(crypto_pk_env_t *k)
{
if (identitykey)
crypto_free_pk_env(identitykey);
identitykey = k;
}