[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] we were leaking some memory every time the client changes IPs
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
router.c
Log Message:
we were leaking some memory every time the client changes IPs
Index: router.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/router.c,v
retrieving revision 1.212
retrieving revision 1.213
diff -u -d -r1.212 -r1.213
--- router.c 30 Sep 2005 00:43:40 -0000 1.212
+++ router.c 30 Sep 2005 06:03:04 -0000 1.213
@@ -95,6 +95,8 @@
void
set_identity_key(crypto_pk_env_t *k)
{
+ if (identitykey)
+ crypto_free_pk_env(identitykey);
identitykey = k;
}