summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-09-30 06:03:04 +0000
committerRoger Dingledine <arma@torproject.org>2005-09-30 06:03:04 +0000
commite28c31ebcea20f72a51cdcb5dd77179f7913a693 (patch)
treea415ca535c8893d84c194bb60d8883b0f571b33c /src/or/router.c
parentab245746a9e5a73d57e881ae9cb73f2f499a1bb6 (diff)
downloadtor-e28c31ebcea20f72a51cdcb5dd77179f7913a693.tar.gz
tor-e28c31ebcea20f72a51cdcb5dd77179f7913a693.zip
we were leaking some memory every time the client changes IPs
svn:r5165
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 29803b2c91..287c841e5e 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -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;
}