[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] we were leaking 616 bytes every time somebody established u...



Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or

Modified Files:
	rendmid.c 
Log Message:
we were leaking 616 bytes every time somebody established us as
an intro point for their hidden service.


Index: rendmid.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/rendmid.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- rendmid.c	3 May 2005 10:04:08 -0000	1.37
+++ rendmid.c	20 May 2005 22:14:33 -0000	1.38
@@ -70,6 +70,9 @@
     goto err;
   }
 
+  crypto_free_pk_env(pk); /* don't need it anymore */
+  pk = NULL; /* so we don't free it again if err */
+
   base32_encode(serviceid, REND_SERVICE_ID_LEN+1, pk_digest,10);
 
   /* Close any other intro circuits with the same pk. */