diff options
author | Roger Dingledine <arma@torproject.org> | 2005-09-30 06:03:04 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-09-30 06:03:04 +0000 |
commit | e28c31ebcea20f72a51cdcb5dd77179f7913a693 (patch) | |
tree | a415ca535c8893d84c194bb60d8883b0f571b33c /src/or/router.c | |
parent | ab245746a9e5a73d57e881ae9cb73f2f499a1bb6 (diff) | |
download | tor-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.c | 2 |
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; } |